官网:wx.setStorageSync(string key, any data) | 微信开放文档
同步
//存储 wx.setStorageSync()
//获取 wx.getStorageSync()
//删除缓存wx.removeStorageSync()
//清理缓存wx.clearStorageSync()
异步
//存储 wx.setStorage()
//获取 wx.getStorage()
//删除缓存wx.removeStorage()
//清理缓存wx.clearStorage()