Swiper 手指触摸或滑动时执行
第一次写博客,请谅解!
代码如下(示例):
<script language="javascript">
var mySwiper = new Swiper('.swiper-container',{
on:{
touchMove: function(swiper,event){
//你的事件
},
},
})
</script>
更多方法可以查看swiper官网: https://www.swiper.com.cn/api/event/88.html