1. 程式人生 > >Swiper禁用左右滑動時空隙

Swiper禁用左右滑動時空隙

<script>
jQuery(document).on("pageshow",function(){
new Swiper('.swiper-container', {
       pagination: '.swiper-pagination',
       paginationClickable: true,
       resistanceRatio: 0
   });
});
</script>