js代码
<script src="static/lib/jquery/1.8/jquery.min.js"></script> <script src="static/lib/jquery-step/js/jquery.step.js"></script> <script> $(function() { var step= $("#myStep").step({ animate:true, initStep:1, speed:1000 }); $("#preBtn").click(function(event) { var yes=step.preStep(); }); $("#applyBtn").click(function(event) { var yes=step.nextStep(); }); $("#submitBtn").click(function(event) { var yes=step.nextStep(); }); $("#goBtn").click(function(event) { var yes=step.goStep(3); }); }); </script>