FileReader
error
property returns the error that occurred while reading the file.
var error = instanceOfFileReader.error
A
DOMError
containing the relevant error. In Chrome 48+/Firefox 58+ this property returns a
DOMException
因为
DOMError
has been removed from the DOM standard.
| 规范 | 状态 | 注释 |
|---|---|---|
|
文件 API
The definition of 'FileReader: error' in that specification. |
工作草案 | 初始定义 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
error
|
Chrome 7 | Edge 12 |
Firefox
3.6
|
IE
10
|
Opera 11 |
Safari
6
|
WebView Android Yes | Chrome Android Yes |
Firefox Android
32
|
Opera Android 11 |
Safari iOS
6.1
|
Samsung Internet Android Yes |
完整支持
见实现注意事项。
FileReader
error
onabort
onload
readyState
result