存到本地需要将json转换成字符串:wx.setStorage('key', JSON.stringify(data)) // data 接口返回的数据取出来的时候在反序列化就行了:wx.getStorage(JSON.parse('key'))
存到本地需要将json转换成字符串:
wx.setStorage('key', JSON.stringify(data)) // data 接口返回的数据
取出来的时候在反序列化就行了:
wx.getStorage(JSON.parse('key'))