我有多种表格我想申报,但看起来你一次只能做一次:
Mesosphere({
name: "signupForm",
method: "signup",
fields: {
username: {
required: true
},
email: {
required: true,
format: "email",
password: {
required: true,
}
}
});
Mesosphere({
name: "loginForm",
method: "login",
fields: {
usernameOrEmail: {
required: true,
},
password: {
required: true,
}
}
}
});
似乎无法传入数组或多个对象。
答案 0 :(得分:1)
不,它目前不支持一次指定多个表单。如果您想通过github摇摆并提交一个问题作为功能请求提醒我。我很乐意在未来的版本中加入这个内容。 http://github.com/copleykj/Mesosphere