FileReader.readyState

提供目前讀取狀態

語法

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

閱讀更多