<script type="text/javascript">
$(function(){
// 获取.swiper-wrapper下的div的个数,放到number里
var number = $('.swiper-wrapper div').length
// 当number小于等于3时,设置.swiper-pagination 为隐藏
if( number <= 3){
$('.swiper-pagination').hide();
$('.swiper-button-next').hide();
$('.swiper-button-prev').hide();
}else{
};
})
</script>