给scroll-view上面加 catchtouchmove=“true”
- 真机查看,开发工具无效
<scroll-view scroll-y="true" catchtouchmove="true">
或者在scroll-view中加入catchtouchmove事件,在js中加入这个函数
<scroll-view scroll-y="true" catchtouchmove='catchTouchMove'>
catchTouchMove(){
return false;
}
- catchtap:和bindtap相对应,catchtap有着阻止事件冒泡的作用;
- catchtouchmove:阻止浮层穿透到页面上