存入缓存 //获取应用实例 const app = getApp()
one
var info = res.data.info
app.globalData.info = res.data.info
wx.setStorageSync('info', app.globalData.info)
two
wx.setStorage({
key:"info",
data:app.globalData.info
})
存入缓存 //获取应用实例 const app = getApp()
one
var info = res.data.info
app.globalData.info = res.data.info
wx.setStorageSync('info', app.globalData.info)
two
wx.setStorage({
key:"info",
data:app.globalData.info
})