localStorage.setItem("name","value") //存储name的值
var type = localStorage.getItem("name"); //取存储的name值
console.log(type) //value