【发布时间】:2015-03-09 22:04:10
【问题描述】:
我有一个对象存储在 chrome 存储中,如下所示:
{
"planA":
{
123: {key: 'some key'}
124: {key: 'some other key'}
},
"planB":
{
223: {key: 'some key'}
234: {key: 'some other key'}
}
}
我想做chrome.storage.sync.remove([{"planA": "123"}]);之类的事情
但这似乎不起作用Error in response to storage.get: Error: Invalid value for argument 1. Value does not match any valid type choices.
来自documentationStorageArea.remove(string or array of string keys, function callback)
蚂蚁的想法?
【问题讨论】:
-
它似乎期望
string or array of string作为参数。你的第一个数组元素是一个对象。
标签: javascript google-chrome-extension storage google-chrome-storage