我在 asp.net 应用程序中使用jquery 步骤向导。单击按钮时更改步骤的事件有问题。在 file.js 中初始化步骤
var WizardFunc = function () {
var wizard = null;
return {
WizardSet: function () {
wizard = $('#order').steps({
bodyTag: "fieldset",
transitionEffect: "slideLeft",
headerTag: "h1",
autoFocus: true
});
},
WizardStepAdd: function (index, title, contentId) {
wizard.steps("insert", index, {
title: title,
content: "<div id='" + contentId + "'></div>"
});
},
WizardGoToStep: function (index) {
wizard.steps("setStep", 1);
},
WizardStepRemove: function (index) {
wizard.remove(index);
}
}
}();
我尝试调用函数:
$("#new-size-container").on("click", ".add-size", function () {
WizardFunc.WizardGoToStep(1);}
返回错误:
Not yet implemented!
Q:点击按钮时如何调用函数来改变步数?