FileReader.readyState
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
提供目前讀取狀態
語法
var state = instanceOfFileReader.readyState
數值
數字代表 FileReader
API 三個可能的狀態:
Value | State | Description |
---|---|---|
0 |
EMPTY |
Reader has been created. None of the read methods called yet. |
1 |
LOADING |
A read method has been called. |
2 |
DONE |
The operation is complete. |
規格
Specification |
---|
File API # dom-filereader-readystate |
瀏覽器相容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
readyState |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.