swiper4輪播設置autoplay自動切換後,即默認設置:html
<script> var mySwiper = new Swiper('.swiper-container', { autoplay:true,//等同於如下設置 /*autoplay: { delay: 3000, stopOnLastSlide: false, disableOnInteraction: true, },*/ }); </script>