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 GitHub
desktopmobileserver
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
Deno
readyState

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support

閱讀更多