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='Flattering High Rise';break; case 1:text='Side Pockets';break; case 2:text='Squat Proof';break; case 3:text='Muscle-Focused Support';break; } return '' + text + ''; } } }); }