Blogger Information
Blog 34
fans 0
comment 0
visits 39103
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
swiper4 同页面多个轮播
黄健的博客
Original
1641 people have browsed it

swiper4 同页面多个轮播时出现奇怪的问题,无法loop。

原因是 swiper new的元素相同,只要不同就可以了。接收的变量名也要不同。

例如:  var s1=  new Swiper(' .class1 .swiper-container');

        var s2= new Swiper(' .class2 .swiper-container');

        也可以用id.

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post