小唯快跑啊
我的是这样的,问题已解决<script> var mySwiper = new Swiper('.swiper-container', { // autoplay: 5000,//可选选项,自动滑动 // loop: true, initialSlide: 0, slidesPerView: 4, observer: true, observeParents: true, nextButton: '.swiper-button-next', prevButton: '.swiper-button-prev', }) //定时 setTimeout(() => { mySwiper.slideTo(0, 50, false); }, 50);</script>