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>

分类:

技术点:

相关文章:

  • 2021-12-06
  • 2021-06-05
  • 2021-12-13
  • 2022-12-23
  • 2022-03-01
  • 2022-12-23
  • 2021-12-19
  • 2022-12-23
猜你喜欢
  • 2021-12-06
  • 2021-10-21
  • 2021-12-06
  • 2021-07-23
  • 2021-07-01
  • 2021-11-11
相关资源
相似解决方案