v1.8.0
发布时间: 2022/11/18
更新如下:
clientStorage新增 keysAsync 获取所有键名 和 deleteAsync 删除对应键名数据 接口。
async function getKeys() {
const keys: string[] = await mg.clientStorage.keysAsync()
console.log('AllKeys', keys)
}
async function deleteKey(key:string) {
await mg.clientStorage.deleteAsync(key)
const data: undefined = await mg.clientStorage.getAsync(key)
console.log(`Data with key ${key} is removed`)
}