此頁面由社群從英文翻譯而來。了解更多並加入 MDN Web Docs 社群。
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 2015年7月.
提供目前讀取狀態
語法
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> |
瀏覽器相容性
Enable JavaScript to view this browser compatibility table.