 
						更新时间:2019-12-15 22:48:18
需要调用3个外部文件,它们分别是jquery.step.css,jquery-1.10.2.js,jquery.step.min.js
| 1 2 3 | <linkrel="stylesheet"type="text/css"href="css/jquery.step.css"/><scriptsrc="js/jquery.step.min.js"></script> | 
html
| 1 2 3 4 5 6 7 8 9 10 | <divclass="main">    <divid="step"></div>    <divclass="btns">        <buttonid="prevBtn">上一步</button>        <buttonid="nextBtn">下一步</button>        <buttonid="btn1">跳到第二步</button>        <buttonid="btn2">跳到第三步</button>    </div>    <divclass="info">index:<spanid="index"></span></div></div> | 
js
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 | varstep1 = $("#step");varindex1 = $("#index");step1.step({    index1: 0,    time: 500,    title: ["填写申请表", "上传资料", "待确认", "已确认", "预约完成"]});index1.text(step1.getIndex());$("#prevBtn").on("click", function() {    step1.prevStep();    index1.text(step1.getIndex());});$("#nextBtn").on("click", function() {    step1.nextStep();    index1.text(step1.getIndex());});$("#btn1").on("click", function() {    step1.toStep(1);    index1.text(step1.getIndex());});$("#btn2").on("click", function() {    step1.toStep(2);    index1.text(step1.getIndex());}); | 
特别申明:
			本站所有资源都是由网友投稿发布,或转载各大下载站,请自行检测软件的完整性!
			本站所有资源仅供学习与参考,请勿用于商业用途,否则产生的一切后果将由您自己承担!
			如有侵权请联系我们删除下架,联系方式:lei1294551502@163.com