📜  将数组添加到本地存储 - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:28.233000             🧑  作者: Mango

代码示例3
localstorage.names = JSON.stringify(names);
var storedNames = JSON.parse(localStorage.names);