我想在Swiper Slider上制作鼠标悬停分页。我该怎么办?
这是我的javascript代码;
var subSlider = new Swiper ('.subsSlider', {
// Optional parameters
direction: 'vertical',
loop: true,
// If we need pagination
pagination: '.swiper-pagination',
paginationClickable: true,
paginationBulletRender: function (swiper, index, className) {
return '<span class="' + className + '">' + (index + 1) + '</span>';
}
})