在使用swiper 3d flow时遇到一个问题就是获取的索引值不正确解决办法
1、swiper3的解决办法
var index = (swiper.activeIndex-1+3)%(3);
image
swiper3中没有realIndex属性,不能直接获取,那么我们需要通过activeIndex进行转换
2、swiper4的解决办法
如果使用swiper4那么可以直接使用realIndex进行获取索引
在使用swiper 3d flow时遇到一个问题就是获取的索引值不正确解决办法
1、swiper3的解决办法
var index = (swiper.activeIndex-1+3)%(3);
swiper3中没有realIndex属性,不能直接获取,那么我们需要通过activeIndex进行转换
2、swiper4的解决办法
如果使用swiper4那么可以直接使用realIndex进行获取索引