Buffalo.Form.bindForm不能绑定空数据

3 views
Skip to first unread message

ysixin

unread,
Apr 15, 2008, 1:25:53 AM4/15/08
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