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>