如何解决如何在 jQuery 向导中再创建一个额外的步骤并在单击提交按钮时重定向到该步骤
我目前在我的项目 (https://github.com/kflorence/jquery-wizard) 中使用 jQuery.wizard v1.0.0 步骤,它运行良好。我想要做的就是创建一个自定义步骤(最后一页),我可以在提交表单后重定向到该步骤。当我单击提交按钮时,我希望我的表单转到最终自定义页面,并显示一条消息,确认他们的申请已成功提交。
有可能实现吗?
这是我用于提交按钮的 Ajax 脚本。
public class History<T> {
private states:T[] = new Array// Array of T
public push(state:T):void {
this.states.push(state) // assuming code you gave was a typo
}
}
public class EditorState {
private content:string
constructor(content:string) {
this.content = content
}
public getContent():string {
return this.content
}
}
//Usage
let hist:History<EditorState> = new History
let state = new EditorState("Something")
hist.push(state) //this is OK,as T is EditorState,and state is an Instance of EditorState
hist.push("Hello World") //This will raise an Error,as String is not of type EditorState
})
谢谢
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。