how to remove data from a object using chrome storage?

后端 未结 1 1323
自闭症患者
自闭症患者 2020-12-11 20:02

i have an object stored inside chrome storage that looks like this:

{
    \"planA\": 
    {
        123: {key: \'some key\'}
        124: {key: \'some other          


        
相关标签:
1条回答
  • 2020-12-11 20:05

    You can't do that in a single API call. The API only gives access to top-level keys: you can get or set planA as a whole.

    So you'll need to write your own get/set functions, that retrieve the required top-level key, modify the object as required, and save it back.

    0 讨论(0)
提交回复
热议问题