分类 :swiper 2020-06-18 人气:0次 0条评论
其实官方已经提供了,可官方文档成员脑子不知道怎么想的,定然用方法名排列,这找功能的时候多难找呀…
<script language="javascript">
var mySwiper = new Swiper('.swiper-container',{
autoplay : true,
})
//鼠标覆盖停止自动切换
mySwiper.el.onmouseover = function(){
mySwiper.autoplay.stop();
}
//鼠标离开开始自动切换
mySwiper.el.onmouseout = function(){
mySwiper.autoplay.start();
}
</script>
评论
继续阅读