我有多个要声明的表单,但似乎一次只能做一个:
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,
}
}
}
});似乎不可能传入一个数组或多个对象。
发布于 2014-02-12 04:30:33
不,它目前不支持一次指定多个窗体。如果您想绕过github并将一个问题作为一个功能请求来提醒我。我非常乐意在将来的发行版中加入这个内容。http://github.com/copleykj/Mesosphere
https://stackoverflow.com/questions/18416998
复制相似问题