diff --git a/js/tools.js b/js/tools.js index 72a2a12..e03a8f0 100644 --- a/js/tools.js +++ b/js/tools.js @@ -18,7 +18,7 @@ $(function () { prevEl: '.swiper-button-prev', }, }); - const mySwiper = new Swiper(".swiper", { + const mySwiper = new Swiper(".banner-cont", { loop: true, // 循环模式选项 autoplay: { delay: 5000, // 5秒自动切换