同步缓存:
wx.setStorageSync('key', 'value') var value = wx.getStorageSync('key')
异步缓存
// setting wx.setStorage({ key:"key", data:"value" }) // getting wx.getStorage({ key: 'key', success (res) { console.log(res.data) } })
同步缓存:
wx.setStorageSync('key', 'value') var value = wx.getStorageSync('key')
异步缓存
// setting wx.setStorage({ key:"key", data:"value" }) // getting wx.getStorage({ key: 'key', success (res) { console.log(res.data) } })
文章数
437
浏览数
96410
今日发布
0