| api | 备注 |
|---|---|
| wx.clearStorage | 清理本地数据缓存 |
| wx.clearStorageSync | wx.clearStorage 的同步版本 |
| wx.getStorage | 从本地缓存中异步获取指定 key 的内容 |
| wx.getStorageInfo | 异步获取当前storage的相关信息 |
| wx.getStorageInfoSync | wx.getStorageInfo 的同步版本 |
| wx.getStorageSync | wx.getStorage 的同步版本 |
| wx.removeStorage | 从本地缓存中移除指定 key |
| wx.removeStorageSync | wx.removeStorage 的同步版本 |
| wx.setStorage | 将数据存储在本地缓存中指定的 key 中详情 |
| wx.setStorageSync | wx.setStorage 的同步版本 |
原文:https://www.cnblogs.com/mafy/p/11887772.html