NavigatorStorage.storage

这篇翻译不完整。请帮忙从英语翻译这篇文章

Secure context
This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.

 NavigatorStorage.storage 是一个只读属性,返回单例 StorageManager 对象,用于访问当前网站或应用程序的浏览器整体存储功能的。 通过返回的对象,您可以检查和配置数据存储的持久性,并了解您的浏览器使用的大约多少空间用于本地存储。

语法

var storageManager = navigator.storage;

返回值

返回 StorageManager 您可以用来维护数据的持久化存储,以及大致确定有多少空间来存储数据。

规范

Specification Status Comment
Storage
navigator.storage
Living Standard Initial definition.

浏览器兼容性

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidiOS SafariSamsung Internet
Basic supportChrome ? Edge ? Firefox Full support 57
Full support 57
Full support 51
Disabled
Disabled From version 51: this feature is behind the dom.storageManager.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
IE ? Opera Full support 42Safari ? WebView Android ? Chrome Android ? Edge Mobile Full support YesFirefox Android Full support 51
Disabled
Full support 51
Disabled
Disabled From version 51: this feature is behind the dom.storageManager.enabled preference (needs to be set to true). To change preferences in Firefox, visit about:config.
Opera Android ? Safari iOS ? Samsung Internet Android ?

Legend

Full support  
Full support
Compatibility unknown  
Compatibility unknown
User must explicitly enable this feature.
User must explicitly enable this feature.

相关链接

文档标签和贡献者

此页面的贡献者: Awe
最后编辑者: Awe,