我正在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);
}
}
}();
Run Code Online (Sandbox Code Playgroud)
我尝试调用函数:
$("#new-size-container").on("click", ".add-size", function () {
WizardFunc.WizardGoToStep(1);}
Run Code Online (Sandbox Code Playgroud)
返回错误:
Not yet …Run Code Online (Sandbox Code Playgroud)