Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

XMLHttpRequest.upload

这篇文章需要文法复核。如何帮忙。

XMLHttpRequest.upload方法返回一个 XMLHttpRequestUpload对象,用来表示上传的进度。这个对象是不透明的,但是可以通过对其绑定事件来追踪它的进度。

可以用来绑定的事件监听器如下:

事件 相应属性的信息类型
onloadstart The fetch starts(开始获取)
onprogress Data transfer is going on(传输进行中)
onabort The fetch operation was aborted(获取进行中)
onerror The fetch failed(获取失败)
onload The fetch succeeded(获取成功)
ontimeout The fetch operation didn't complete by the timeout the author specified(获取操作因用户指定的延迟时间内未完成)
onloadend The fetch operation completed (either success or failure)(获取完成(不能成功与否))

Specifications

Specification Status Comment
XMLHttpRequest Living Standard WHATWG living standard

浏览器兼容性

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support ? ? ? ? ?
Feature Android Chrome for Android Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile
Basic support ? ? ? ? ? ?

文档标签和贡献者

 此页面的贡献者: Rainsho
 最后编辑者: Rainsho,