js代码
<script src="js/jquery-1.11.0.min.js" type="text/javascript" charset="utf-8"></script> <script src="js/swiper.min.js" type="text/javascript" charset="utf-8"></script> <script type="text/javascript"> var mySwiper = new Swiper('.swiper-container.licheng-content', { autoplay: false, //自动滑动 }) $('.btn-prev').click(function() { mySwiper.swipePrev(); }) $('.btn-next').click(function() { mySwiper.swipeNext(); }) </script>