wx.getStorageInfo(Object object)
object.success 回调函数
参数
Object object
属性 | 类型 | 说明 |
---|---|---|
keys | Array.<string> | 当前 storage 中所有的 key |
currentSize | number | 当前占用的空间大小, 单位 KB |
limitSize | number | 限制的空间大小,单位 KB |
示例代码
const res = wx.getStorageInfoSync()
} catch (e) {
}