|
var mySwiper = new Swiper('.swiper-container', {
direction: 'horizontal',
loop: true,
autoplay: {
delay: 4000,
},
pagination: {
el: '.swiper-pagination',
paginationType: 'custom',
clickable: true,
renderBullet: function (index, className) {
var text = $(".swiper-slide").eq(index + 1).attr('src');
var pictype = $(".swiper-slide").eq(index + 1).next('input').val();
return '<li class="' + className + '"color:#ffc66d;">typeblock(this)"color:#ffc66d;">typenone(this)"><img src="' + text + '"><div class="pictype">' + pictype + '</div></li>';
},
},
navigation: {
nextEl: '.swiper-button-right',
prevEl: '.swiper-button-left',
}
});这个是swiper的初始化代码,ie11可以,ie9就报错
|
|