标签:cti mys ide code 导航 active bullet params ams
// 滚动图
var mySwiper = new Swiper(‘.swiper-container‘, {
// 如果需要分页器
pagination: {
el: ‘.swiper-pagination‘,
},
onSlideChangeEnd: function (swiper) { // pagination BUG
var activeIndex = swiper.activeIndex;
$(‘.swiper-pagination‘)
.find(‘span‘)
.eq(activeIndex)
.addClass(‘swiper-pagination-bullet-active‘)
.siblings()
.removeClass(‘swiper-pagination-bullet-active‘);
}
});
标签:cti mys ide code 导航 active bullet params ams
原文地址:https://www.cnblogs.com/aiaitie/p/12010055.html