<!-- 点击切换引入 -->
<script type="text/javascript" src="js/jquery.js"></script>
<script type="text/javascript" src="js/jquery.SuperSlide.2.1.1.js"></script>
var swiper = new Swiper('.swiper-container', { //swiper轮播图
slidesPerView: 'auto',//则自动根据slides的宽度来设定数量
centeredSlides: true,//active slide会居中,而不是默认状态下的居左
slideToClickedSlide: true,//可以点击切换
onlyExternal:true,//无法拖动
initialSlide: self.hour_type, //设置为2后,Swiper初始化时activeSlide成了第三个
nextButton: '.swiper-button-next',
prevButton: '.swiper-button-prev',
onTransitionEnd: function (swiper) {
回调
}
});