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,
        },
    });

 

posted @ 2020-07-01 11:19  怪咖咖  阅读(661)  评论(0编辑  收藏  举报