📅  最后修改于: 2022-03-11 15:04:16.228000             🧑  作者: Mango
var names = [];
names[0] = prompt("New member name?");
localStorage.setItem("names", JSON.stringify(names));
//...
var storedNames = JSON.parse(localStorage.getItem("names"));