HttpDownloadProgressEvent

A download progress event.

下载进度事件。

interface HttpDownloadProgressEvent extends HttpProgressEvent { type: HttpEventType.DownloadProgress partialText?: string // 继承自 common/http/HttpProgressEvent type: HttpEventType.DownloadProgress | HttpEventType.UploadProgress loaded: number total?: number }

属性

属性名类型说明
type
partialText

The partial response body as downloaded so far.

到目前为止已经下载的那部分响应体。

Only present if the responseType was text.

只有当 responseType 是 text 时才会出现。