可以檢測到滑動到的下一頁的索引值 官方的API接口,還有很多的回調函數可以監測當前頁面索引值。
var swiper = new Swiper('.swiper-container', {
on:{
slideChangeTransitionEnd: function () {
console.log(this.realIndex);
}
},
});
可以檢測到滑動到的下一頁的索引值 官方的API接口,還有很多的回調函數可以監測當前頁面索引值。
var swiper = new Swiper('.swiper-container', {
on:{
slideChangeTransitionEnd: function () {
console.log(this.realIndex);
}
},
});