1、小程序本地存儲
- 存值杜顺,無需轉(zhuǎn)換為string
wx.setStorageSync("cates", { time: Date.now(), data: this.Cates })
- 取值,同樣無需類型轉(zhuǎn)換
wx.getStorageSync("cates")
wx.setStorageSync("cates", { time: Date.now(), data: this.Cates })
wx.getStorageSync("cates")