这是一款非常简单的jQuery分步流程插件,适用于商城购物步骤流程显示,支持自定义当前步骤样式。
js代码
<script src=\"js/step.js\"></script> <script> $(function () { initStep(); }); function initStep() { $(\".steps\").step({ stepNames: [\'购买\', \'付款\', \'发货\', \'收货\', \'评价\', \'完成\'], initStep: 3 }) } function previousStep() { $(\".steps\").step(\"previous\"); } function nextStep() { $(\".steps\").step(\"next\"); } function gotoStep(step) { $(\".steps\").step(\"goto\", step) } </script>
暂无评论内容