<script> var mySwiper = new Swiper('.swiper-container', { // options ... }); // 鼠标移入停止自动滚动 $('.swiper-slide').mouseenter(function() { mySwiper.autoplay.stop(); }) // 鼠标移出开始自动滚动 $('.swiper-slide').mouseleave(function() { mySwiper.autoplay.start(); }) </script>