1.仿照代码重写了原usernameCheck的validator。重命名为remoteCSRF,用于使用ajax异步向服务器验证字段唯一性。参数为url:请求地址,field:向服务器发送的表示符名称;
2.添加了emailAddress的validator的requires.js的config. [ci skip]
This commit is contained in:
@@ -9,6 +9,7 @@ define("validation",
|
||||
'validator/integer',
|
||||
'validator/between',
|
||||
'validator/confirm',
|
||||
'validator/usernameCheck'],
|
||||
'validator/remoteCSRF',
|
||||
'validator/emailAddress'],
|
||||
function () {
|
||||
});
|
||||
Reference in New Issue
Block a user