I have a small problem. The swiper-slide in swiper2 needs to be indexed with a set of p outside, such as:
slide1 and content1,
swiperslide2 and content2,
slide3 and content3....and so on.
I looked at the API on the swiper2 official website. There is a mySwiper.activeLoopIndex that can return the index of the current active block in loop mode. What my console.log output is not 0, 1, 2, 3, 4... but irregular 0, 1, 2, 3.
Please help me give some ideas, these things are confusing me.
As shown below:
Thank you everyone.
Nodes will be copied in loop mode. Just look at the current node to make a judgment when switching