進入頁面,調接口,請求到數據 list, 然后把list 存儲到localStorage中:localStorage.setItem("array", JSON.stringify(list));然后退出這個頁面,然后再進入, 又重新獲取到了數據list, 現在需要怎么操作, 才能把這個新請求到的list 也push到已有的localStorage中呢?? 試了很久, 只會覆蓋掉,而不能push 進去。。。。求幫忙!萬分謝謝!
關于localStorage 存儲數據的問題
不負相思意
2019-01-05 22:09:03