我正在尝试验证表格。当我指定默认数据来填充不匹配的表单时,而不是通过验证commit
,我预计会记录一个错误(这是正确的):
Errors: {"confirmedUsername":{"type":"match","message":"Usernames must match!"}}
JsFiddle:http: //jsfiddle.net/franklovecchio/FkNwG/173/
当我指定匹配的默认数据,然后通过验证commit
,我得到一个实际的控制台错误:
Uncaught TypeError: Cannot call method 'set' of undefined
JsFiddle:http: //jsfiddle.net/franklovecchio/FkNwG/172/。
是什么赋予了?