手机版

微信小程序常见的几个项目符号框提示详解

时间:2021-08-21 来源:互联网 编辑:宝哥软件园 浏览:

一、模态窗口

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)}}

版权声明:微信小程序常见的几个项目符号框提示详解是由宝哥软件园云端程序自动收集整理而来。如果本文侵犯了你的权益,请联系本站底部QQ或者邮箱删除。