1、下面這種情況下除加載框外的其他控件可執行其他操作
wx.showLoading({
title:'加載中'
})
2、下面這種情況不可點擊
wx.showLoading({
title:'加載中',
mask:true //此時遮罩層起作用
})
3、wx.showToast()和wx.showLoading類似
wx.showToast({
title:'加載成功', //設置標題
duration:2000, //設置顯示時間
mask:true, //是否打開遮罩,默認不打開
icon:'none' //圖標樣式,none爲無圖標