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) } }); <div class="swiper-slide" ng-repeat="img in imgs"><img class="img" src="{{img.pic}}"/></div>這是控制臺打印的index:1 2 3 1 2 3 1 2 3...,index 0 無法顯示。
swiper 循環(huán)滾動時,第一張slide無法顯示
開滿天機
2018-09-03 14:13:30