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!