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

storage clear 增加回调测试

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