[英]Remove a data from chrome.storage.sync?
I don't see a remove method in the documentation for removing a specific key.我在文档中没有看到用于删除特定键的删除方法。 It just has clear()它只有 clear()
But it does have a remove for StorageArea for which I don't understand the use case, to begin with.但是它确实删除了我不了解用例的 StorageArea,首先。
Storage API has several "backends" that the API calls StorageAreas: Storage API 有几个 API 调用 StorageAreas 的“后端”:
chrome.storage.local
(a single-install-only storage with lax limits) chrome.storage.local
(限制宽松的单次安装存储)chrome.storage.sync
(a shared-between-installs storage area with tight limits) chrome.storage.sync
(具有严格限制的安装间共享存储区域)chrome.storage.managed
(a read-only storage populated by policies) chrome.storage.managed
(由策略填充的只读存储) Each is an instance of StorageArea
, so each can use any of the described methods .每个都是StorageArea
一个实例,因此每个都可以使用任何所描述的方法。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.