$require(['swiper'], function() { var swiper = new Swiper('.lianjie', { slidesPerView: 8, spaceBetween: 15, autoplay: 4000, loop: true, navigation: { nextEl: '#c_effect_062-1663230392670 .e_container-8 .cbox-8-1', prevEl: '#c_effect_062-1663230392670 .e_container-8 .cbox-8-0', }, breakpoints: { 360: { //当屏幕宽度大于等于768 slidesPerView: 3, spaceBetween: 10 }, 769: { //当屏幕宽度大于等于769 slidesPerView: 3, spaceBetween: 10 }, 1440: { //当屏幕宽度大于等于1440 slidesPerView: 8, } }, pagination: { el: '.swiper-pagination_a', clickable: true, }, }); })