1.Swiper autoplay 延迟时间无效问题; swiper版本问题
PS:这是处理我自己版本问题的办法; 我在项目中用的版本是Swiper3.7, 但是在项目中初始化swiper的时候,参数中却是 Swiper4/Swiper5 版本中的写法;
细看swiper版本(4/5 和 3)不同的写法传送门: https://www.swiper.com.cn/api/index.html
下面是autoplay 两个不同版本的写法
1. Swiper4 / Swiper5 (autoplay写法)
const swiper_con = new Swiper('.swiper-container',{
autoplay: {
}
});
2. Swiper3.x (autoplay写法)
const swiper_con = new Swiper('.swiper-container',{
autoplay: 1700,
autoplayDisableOnInteraction: true, //触碰图片后时候轮播
});