提交 3309edd9 编写于 作者: 杜庆泉's avatar 杜庆泉

storage clear 增加回调测试

上级 03114d53
......@@ -239,12 +239,21 @@
clearStorage: function () {
this.key = ''
this.data = ''
uni.clearStorage()
uni.showModal({
title: '清除数据成功',
content: ' ',
showCancel: false
uni.clearStorage({
success:function(res){
uni.showModal({
title: '清除数据成功',
showCancel: false
})
},
fail:function(res){
uni.showModal({
title: '清除数据失败',
showCancel: false
})
},
})
},
clearStorageSync: function () {
this.key = ''
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册