if(isNew){
$('#newstop-wrapper').append(html);
topSwiper = new Swiper('#newstop', {
pagination : '.swiper-pagination',
loop : true,
autoplay : 5000,
preventClicks : false,
preventLinksPropagation : true,
width : window.innerWidth,
autoplayDisableOnInteraction : false,
observer : true
});
} else {
topSwiper.stopAutoplay();
topSwiper.removeAllSlides();
if($.trim(html) != ""){
topSwiper.appendSlide(html);
topSwiper.startAutoplay();
}
}
Swiper的初始化与更新
最新推荐文章于 2023-06-02 16:24:41 发布