let swiper1 = new axSwiper('#swiper1', { slidesPerView:"auto", //自适应宽度 spaceBetween:0,//间距 loop:true, speed:1000, //滚动速度 effect: 'fade', autoplay: { delay:5000,//间隔时间0秒 stopOnLastSlide: false, disableOnInteraction: false,//触摸后仍然执行 pauseOnMouseEnter: true, }, }); let swiper2 = new axSwiper('#swiper2', { slidesPerView:"auto", //自适应宽度 spaceBetween:0,//间距 loop:true, speed:1000, //滚动速度 autoplay: { delay:5000,//间隔时间0秒 stopOnLastSlide: false, disableOnInteraction: false,//触摸后仍然执行 pauseOnMouseEnter: true, }, }); let swiper3 = new axSwiper('#swiper3', { slidesPerView:"1", //自适应宽度 spaceBetween:10,//间距 breakpoints: { 992: { slidesPerView: 4, spaceBetween: 20 }, 768: { slidesPerView: 2, spaceBetween: 10 } }, loop:true, speed:1000, //滚动速度 autoplay: { delay:3000,//间隔时间0秒 stopOnLastSlide: false, disableOnInteraction: false,//触摸后仍然执行 pauseOnMouseEnter: true, }, }); //特殊的Tab let tabNav = new axSlider('#tab-slider-nav', { slides: 0, trigger: 'mouseover' }); let tabCon = new axSlider('#tab-slider-con', { autoHeight: true, pagination: { enable:true, selector: tabNav, }, });