web本地存储localStorage
//保存数据localStorage.setItem("key", "value");//读取数据var lastname = localStorage.getItem("key");//删除数据localStorage.removeItem("key");链接: Window localStorage 属性
·
//保存数据
localStorage.setItem("key", "value");
//读取数据
var lastname = localStorage.getItem("key");
//删除数据
localStorage.removeItem("key");
更多推荐
所有评论(0)