wx。show model delete(){ wx。显示模式({ title : ' ',content: '是否确认删除,成功如果确认控制台。日志('用户点击确定)} else if(RES . cancel){ console。日志('用户点击取消') } } }) }
提示你想提示的信息
wx.showToast({ title: '成功,icon: "成功“,工期: 2000})注意wx.showLoading和wx.showToast同时只能显示一个wx.showToast应与wx.hideToast配对使用
wx.showLoading
wx.showLoading({ title: '加载中,})setTimeout(函数(){ wx。hideloping()},2000)
wx。showactionsheet({项目列表:[' A ',' B ',' C'],成功:函数(RES){控制台。日志(RES . tapindex)},失败:函数(RES){控制台。日志(RES . errmsg)}