红叶都枫了 @163
摘要: 在向本地缓存存值前,判断localstory是否已经存在某个属性,没有就正常存,有就替换掉 created(){ if(localStorage.getItem("属性名") != null){ console.log('不是第一次') }else{ console.log('第一次写入story' 阅读全文
posted @ 2020-09-01 17:45 红叶都枫了163 阅读(263) 评论(0) 推荐(0) 编辑