<script> var mySwiper = new Swiper('.swiper',{
autoplay: {
pauseOnMouseEnter: true,
},
})
</script>//6.6.2之前的版本需要通过代码实现此功能mySwiper.el.onmouseover = function(){
mySwiper.autoplay.stop();
}
mySwiper.el.onmouseout = function(){
mySwiper.autoplay.start();
}
网友评论