微信小程序showLoading()

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爲無圖標
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章