小程序防止点击遮罩层遮罩层下面也反应

< view class= 'selector-bj' wx:if= "{{selectorBj}}" bindtap= 'tapSeleBj' catchtouchmove= "preventD"></ view >
这是遮罩层

在其中加上catchtouchmove="preventD" 为防止冒泡事件,就可以了。

猜你喜欢

转载自blog.csdn.net/caoyan0829/article/details/79804438
今日推荐