📜  js 保存本地存储 - Javascript 代码示例

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

代码示例5
// Store
localStorage.lastname = "Smith";
// Retrieve
document.getElementById("result").innerHTML = localStorage.lastname;
// Remove
localStorage.removeItem("lastname");