swiper自定义分页器点击效果(paginationClickable )如何添加
paginationType: 'custom',paginationClickable :true,
paginationCustomRender: function (swiper, current, total) {
var modularH = '';
for(var i = 1;i <=total; ++i){
if(i == current){
modularH += '<span class="swiper_Paging_device_active">' + i +'</span>';
}else{
modularH += '<span class="swiper_Paging_device">' + i +'</span>';
}
}
return modularH;
}
paginationClickable :true设置后,无法实现自定义分页器点击跳转分页效果
我也遇到了这样的问题,好像是paginationType: 'custom',和paginationClickable冲突了,我的解决方案是,使用默认的paginationType样式,然后重写了默认样式
页:
[1]