我有多个表格要申报,但看来您一次只能申报一个:
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,
}
}
}
});
似乎不可能传入一个数组或多个对象。