关于swiper的鼠标放到上面停止切换的功能代码:
$(".banner,.works-book").mouseenter(function () {//滑过悬停
myswiper.stopAutoplay();
myswipers.stopAutoplay();//mySwiper 为上面你swiper实例化的名称
}).mouseleave(function(){//离开开启
myswiper.startAutoplay();
myswipers.startAutoplay();
});