<script language="javascript"> var mySwiper = new Swiper('.swiper-container',{autoplay : 1000,})$('#btn1').click(function(){$("#showhtml").html('锁住状态');mySwiper.lockSwipes();})$('#btn2').click(function(){$("#showhtml").html('一般状态');mySwiper.unlockSwipes();})</script>