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

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

console.log(type)  //value

相关文章:

  • 2022-12-23
  • 2021-10-22
  • 2021-12-09
  • 2021-04-09
  • 2021-09-03
  • 2021-07-27
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2021-04-10
  • 2021-09-12
  • 2021-10-27
  • 2021-12-08
  • 2022-01-02
  • 2021-05-27
  • 2021-06-09
相关资源
相似解决方案