window.onload=function(){ var mySwiper = new Swiper ('.slideshow-slider', { loop: true, // 循环模式选项 // 如果需要分页器 pagination: { el: '.slideshow-slider .swiper-pagination', clickable :true, renderBullet: function (index, className) { switch(index){ case 0:text='Halter Style';break; case 1:text='Racerback';break; case 2:text='Support Band';break; } return '' + text + ''; } } }); }