安全上下文
此特征只可用于
安全上下文
(HTTPS),在某些或所有
支持浏览器
.
NavigatorStorage.storage
read-only property returns the singleton
StorageManager
object used to access the overall storage capabilities of the browser for the current site or app.
The returned object lets you examine and configure persistence of data stores and learn approximately how much more space your browser has available for local storage use.
var storageManager = navigator.storage;
StorageManager
object you can use to maintain persistence for stored data, as well as to determine roughly how much room there is for data to be stored.
| 规范 | 状态 | 注释 |
|---|---|---|
|
存储
在该规范中的 navigator.storage 定义。在该规范中的 NaN 定义。 |
实时标准 | 初始定义。 |
| 桌面 | 移动 | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
storage
|
Chrome ? | Edge ? |
Firefox
57
|
IE ? | Opera ? | Safari ? | WebView Android ? | Chrome Android ? | Firefox Android 51 | Opera Android ? | Safari iOS ? | Samsung Internet Android ? |
完整支持
兼容性未知
用户必须明确启用此特征。
NavigatorStorage
storage