一、模态窗口
delete(){ wx . show modal({ title : ' ',content: '确定要删除吗',成功(RES){ if(RES . confirm){ console . log('用户单击OK')}否则if (res.cancel) {console.log('用户
第二,提示你想要提示的信息
提示您想要提示的信息
wx . showtoast({ title :' success ',图标: ' success ',持续时间: 2000})注意
Wx.showLoading和wx.showToast只能同时显示一个wx.showToast,应该和wx.hideToast配对。
wx . showloading({ title : ' loading ',})settimeout(function(){ wx . hide loading()},2000) 4。显示动作表(对象)
wx . showactionsheet({ item list :[' a ',' b ',' c'],success:函数(RES){ console . log(RES . tapindex)},fail:函数(RES) {console.log (Res. errmsg)}}