$require(['swiper'], function () { var SmallImg = new Swiper('.SmallImg', { slidesPerView: 4, }) var ProJius = new Swiper('.ProJius', { loop: true, observer: true, observeParents: true, simulateTouch: false,//禁止鼠标模拟 pagination: { el: '.swiper-pagination', type: 'fraction', renderFraction: function (currentClass, totalClass) { return '' + ' ' + ''; }, }, navigation: { nextEl: '.jiusArr .swiper-button-next', prevEl: '.jiusArr .swiper-button-prev', }, thumbs: { swiper: SmallImg, } }) var RightText = new Swiper('.RightText', { loop: true, effect: 'fade', simulateTouch: false,//禁止鼠标模拟 breakpoints: { 768: { effect: 'fade', }, } }) ProJius.controller.control = RightText; RightText.controller.control = ProJius; })