getState
返回门户状态,状态值可以是 unknown
、not_captive
、unlocked_portal
或 locked_portal
之一。
语法
js
let state = browser.captivePortal.getState()
返回值
一个 Promise
,完成时其会兑现一个字符串,该字符串包含 unknown
、not_captive
、unlocked_portal
或 locked_portal
之一。
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | ||||||
---|---|---|---|---|---|---|---|
getState |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No 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.