微信小程序wx.showLoading()阻止屏幕滑动

小程序,加载图标wx.showLoading

wx.showLoading({
  title:'加载中',                             
  mask:true                                    
})
//mask是防止屏幕穿透的,默认是false,所以想要拦截屏幕滑动事件,就一定要记得写这一行
 wx.hideLoading();
//想要消失就这么写

参照了大佬的教程,链接如下https://blog.csdn.net/Builder_Taoge/article/details/80514705

猜你喜欢

转载自blog.csdn.net/Hero_rong/article/details/87862070
今日推荐