uniapp本地缓存api

设置

uni.setStorageSync('token', 'xxx');

获取

uni.getStorageSync('token')

清除

uni.clearStorageSync();

 

posted @ 2023-03-06 15:42  南无、  阅读(47)  评论(0)    收藏  举报