swiper自定义分页器

基础写法

swiperOption: {
    
    
  loop: true,
  pagination: {
    
    
    el: ".swiper-pagination",
    clickable: true,
    type: 'custom',
    renderCustom: function (swiper, current, total) {
    
    
      return current + ' of ' + total;
    }
  }
},

猜你喜欢

转载自blog.csdn.net/yuyu_2019/article/details/112003942
今日推荐