微信小程序api视频课程-数据缓存-wx.removeStorage 从本地缓存中移除指定 key的使用
wxml代码
wx.removeStorage(Object object)
从本地缓存中移除指定 key
<button bindtap="mydel01">删除制定key</button>
js代码
/**
* 页面的初始数据
*/
data: {
},
mydel01:function(){
wx.removeStorage({
key: 'k-abc',
success: function(res) {
console.log("数据key删除成功")
},
})
},
欢迎大家收看我的****:微信小程序常用API使用
https://edu.****.net/course/detail/16194