Swiper在loop: "auto"时当前高亮index选择bug
var news = new Swiper('.i-news-swiper', { on: { transitionEnd: function(){ var index = this.realIndex; //用 realIndex可选择对应高亮轮播 } }, slidesPerView: "auto", loop: true, autoplay: { disableOnInteraction: false, }, });
var news = new Swiper('.i-news-swiper', { on: { transitionEnd: function(){ var index = this.realIndex; //用 realIndex可选择对应高亮轮播 } }, slidesPerView: "auto", loop: true, autoplay: { disableOnInteraction: false, }, });