持久化JS存储

  <script src="../../lib/persist-min.js"></script>

 //测试一下本地化存储器
 var store = new Persist.Store('menu_store');
store.set("mytestid",1);
 var mytestid=store.get("mytestid");
 console.log(mytestid);

原文地址:https://www.cnblogs.com/littlehb/p/11226798.html