var mySwiper = new Swiper('.swiper-container', {
speed: 1000,
loop: true,
observer:true,
observeParents:true,
autoplayDisableOnInteraction : false,
autoplay:1000,
onSlideChangeStart:function(swiper)
{
console.log(swiper.activeIndex)
}
});
这是控制台打印的index:1 2 3 1 2 3 1 2 3...,index 0 无法显示。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
使用回调方法中
oninit:funcation(){
//加载内容
}
方法加载一次第一页就可以了
我也遇到了,百度没人遇到这个问题。。。求解决方案