Navigator:storage 属性
Navigator.storage
只读属性返回一个单例的 StorageManager
对象,用于访问当前站点或应用程序的浏览器整体存储能力。返回的对象允许你检查和配置数据存储的持久性,并了解浏览器可用于本地存储的剩余空间大小。
值
一个 StorageManager
对象,可用于维护存储数据的持久性,并估算存储数据的空间大小。
规范
Specification |
---|
Storage # dom-navigatorstorage-storage |
浏览器兼容性
Report problems with this compatibility data on GitHubdesktop | mobile | server | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
storage |
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.