1.创建缓存
localStorage.setItem('doEdit', this.doEdit);
2.读取缓存
localStorage.getItem('doEdit', this.doEdit);
3.清除缓存
localStorage.clear();
版权声明:本文为Hero_rong原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。
1.创建缓存
localStorage.setItem('doEdit', this.doEdit);
2.读取缓存
localStorage.getItem('doEdit', this.doEdit);
3.清除缓存
localStorage.clear();