Groups
Sign in
Groups
buffalo与Amowa
Conversations
About
Send feedback
Help
Buffalo.Form.bindForm不能绑定空数据
3 views
Skip to first unread message
ysixin
unread,
Apr 15, 2008, 1:25:53 AM
4/15/08
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to buffalo与Amowa
为何我要绑定空数据?
因为在某些操作成功后,我需要清空form
但是Buffalo.Form.bindForm 中的 :
if (!data[
element.name
]) {
continue;
}
踢出了所有为空的数据,建议改成:
if (data[
element.name
] == 'undefined') {
continue;
}
Reply all
Reply to author
Forward
0 new messages