Problem with swiper2 index - Stack Overflow
我想大声告诉你
我想大声告诉你 2017-06-28 09:23:22
0
1
768

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.

我想大声告诉你
我想大声告诉你

reply all(1)
漂亮男人

Nodes will be copied in loop mode. Just look at the current node to make a judgment when switching

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template