newmiracle

jquery swiper自定义pagination的方法
<pre>
<script>
var swiper = new Swiper(\'.swiper-container\', {
pagination: \'.swiper-pagination\',
paginationClickable: true,
paginationBulletRender: function (swiper, index, className) {
return \'<span class="\' + className + \'">\' + (index + 1) + \'</span>\';
}
});
</script>
</pre>
具体详情http://www.swiper.com.cn/api/pagination/2014/1217/70.html

ps:自定义classname方法
<pre>
bulletClass: \'chanpin-bullet\',
bulletActiveClass: \'chanpin-bullet-active\',
</pre>

分类:

技术点:

相关文章:

  • 2022-03-01
  • 2021-11-05
  • 2021-06-25
  • 2021-11-30
  • 2021-12-25
  • 2021-12-06
  • 2021-12-05
  • 2021-12-06
猜你喜欢
  • 2021-12-06
  • 2021-12-06
  • 2021-10-16
  • 2021-12-06
  • 2021-11-11
  • 2021-12-13
相关资源
相似解决方案