# deleteGlobalAppCache^8.0
删除指定键指定存储类型的全局缓存(数据共享权限范围:app内)
# 请求参数
Prop | Type | Default | Comment |
---|---|---|---|
keys | Array | ['key1','key2',...] | 需要获取的键值数组或者list,必传参数 |
说明:
- 不建议使用localStorage、sessionStrorage,页面间数据不共享
- 内存缓存:退出APP,全部内存缓存都被清除
# 接口调用示例
const params = {
"keys": [
'name'
]
}
this.$bridge
.deleteGlobalAppCache(params)
.then(res => {
this.$alert(res)
})
.catch(err => {
this.$toast(err)
})
1
2
3
4
5
6
7
8
9
10
11
12
13
14
2
3
4
5
6
7
8
9
10
11
12
13
14
# 接口返回示例
{
"code": 0,
"msg": "成功"
}
1
2
3
4
5
6
2
3
4
5
6