var swiper = new Swiper('.swiper-container', {
pagination: '.swiper-pagination',
autoplay: 2000,
paginationClickable: true,
loop: true,
//添加这个属性,就可以了
autoplayDisableOnInteraction : false
});
转载于:https://www.cnblogs.com/duanyue/p/7002866.html