1.提示框:wx.showToast
实例:
wx:showToast({
title:'马上开始'
})
2.显示加载: wx.showloading 关闭提示:wx.hidelading 两个需配合使用
实例:
wx:showloading({
title:'正在加载'
})
setDoun(function(){
wx.hidelading()
2000},)
3.模态弹框: wx.showModal
wx.showModal({
title: '提示',
confirmText: '去设置',
cancelText: '取消',
content: '点击去设置',
success: function (res) {
if (res.confirm) {
wx.navigateTo({
url: '/index/intercalate'
})
} else if (res.cancel) {
return;
}
}
})
}
附:还可WXML自己写弹框