var mySwiper = new Swiper('.banner-imgbox', { pagination: '.pagination', loop: true, autoplay: 3000, grabCursor: true, paginationClickable: true }) $('.banner-left').on('click', function (e) { e.preventDefault() mySwiper.swipePrev() }) $('.banner-right').on('click', function (e) { e.preventDefault() mySwiper.swipeNext() }) var cpzSwiper = new Swiper('.cpzs-imgbox', { paginationClickable: true, slidesPerView: 3, loop: true, autoplay: 3000, calculateHeight: true, }) $('.cpzs-left').on('click', function (e) { e.preventDefault() cpzSwiper.swipePrev() }) $('.cpzs-right').on('click', function (e) { e.preventDefault() cpzSwiper.swipeNext() })