swiper轮播一行有几列如下决定
slidesPerView为3是三列,不写一列
// 初始化文章swiper var newsSwiper = new Swiper('#news-swiper', { slidesPerView: 3, spaceBetween: flag==2?10:20, navigation: { nextEl: '.newsSwiper-next', prevEl: '.newsSwiper-prev', }, loop: true, })