代码片段:$(function(){initStep(); }); functioninitStep(){$(".steps").step({ stepNames:['购买','付款','发货','收货','评价','完成'], initStep:3}) } functionpreviousStep(){$(".steps").step("previous"); } functionnextStep(){$(".steps").step("next"); } functi