以下是小程序中常用的集中弹窗形式:
1.类似layer.confirm(‘111‘,function(){})效果wx.showModal({ title: ‘‘, content: ‘暂无分析数据‘, showCancel: false });}2.类似layer.msg效果wx.showToast({ title: ‘登录成功‘, icon: ‘success‘, duration: 1000})3.loading显示框:showLoading与hideLoading配对使用wx.showLoading({ title: ‘加载中。。。‘,})4.隐藏显示的loadingsetTimeout(function () { wx.hideLoading()}, 2000)
更多用法与属性参考微信小程序API