动态改变swiper的属性

<script> 

   var mySwiper = new Swiper('.swiper-container',{ 

        autoplay : 1000,
        autoplayDisableOnInteraction : false,

      })

   $('#btn1').click(function(){

      mySwiper.params.autoplay=200;

      })
</script>

 

posted @ 2017-07-03 21:51  God丶魔多  阅读(5393)  评论(0编辑  收藏  举报