![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
swiper
文章平均质量分 75
吃葡萄不吐葡萄皮嘻嘻
。
展开
-
loop为true, slidesPerView为多个的时候,swiper精准获取激活的索引
loop为true, slidesPerView为多个的时候,swiper精准获取激活的索引原创 2022-12-28 16:25:23 · 1443 阅读 · 0 评论 -
swiper如何获取当前索引以及不触发事件后还会自动播放
效果图如下:图片来自唯品会官网重要属性和方法:disableOnInteraction: falseslideChangeTransitionEnd(){}代码如下:<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <me原创 2021-09-23 18:03:33 · 1734 阅读 · 0 评论