【前端开发】localStorage的用法

localStorage.setItem("name","value")  //存储name的值

var type = localStorage.getItem("name");  //取存储的name值

console.log(type)  //value

posted @ 2018-04-27 14:20  JeckHui  阅读(510)  评论(0编辑  收藏  举报