API
2021-04-13 本文已影响0人
云之一
1、小程序本地存储
- 存值,无需转换为string
wx.setStorageSync("cates", { time: Date.now(), data: this.Cates })
- 取值,同样无需类型转换
wx.getStorageSync("cates")
wx.setStorageSync("cates", { time: Date.now(), data: this.Cates })
wx.getStorageSync("cates")