jquery swiper custom methods pagination

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: Custom method classname
<pre>
bulletClass: 'chanpin-bullet',
bulletActiveClass: 'chanpin-bullet-Active',
</ pre>

Guess you like

Origin www.cnblogs.com/newmiracle/p/11865524.html