set localstorage items inside a loop

后端 未结 0 1725
执笔经年
执笔经年 2021-01-03 06:08

I am trying to set some items to localstorage via a loop. Here is my code:

var catArr = JSON.parse(localStorage.getItem(\'cat\'));

for (var i = 0, len = catA         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题