📜  复制 localstorage javascript 代码示例

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

代码示例3
var data = JSON.parse(/*previously copied stringified JSON from clipboard*/);
Object.keys(data).forEach(function (k) {
  localStorage.setItem(k, data[k]);
});