微信小程序swiper组件禁用手动滑动-小程序swiper怎么禁用-swiper小程序
1.
给swiper-item添加属性catchtouchmove"stopTouchMove"
2.然后在js中定义stopTouchMove方法
//禁用swiper滑动功能stopTouchMove:function(){returnfalse;},声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。
给swiper-item添加属性catchtouchmove"stopTouchMove"
2.然后在js中定义stopTouchMove方法
//禁用swiper滑动功能stopTouchMove:function(){returnfalse;},声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。