uni-app uni-app判断缓存数据是否存在
getChangeScroll(dataId) { //重要!!! 如果缓存有,直接赋值,没有则 if(uni.getStorageSync('num'+dataId)){ this.currentList = uni.getStorageSync('num'+dataId) }else{ //页面渲染 this.request({ url: this.http + this.urlList[3].paht, data: {
原创
2021-05-26 15:23:04 ·
3120 阅读 ·
0 评论