FileReader.readyState
io error: No such file or directory (os error 2) (/home/runner/work/yari/yari/mdn/translated-content/files/zh-tw/web/api/file_api/index.md)
提供目前讀取狀態
語法
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 |
瀏覽器相容性
BCD tables only load in the browser