不可见字符校验改为在前端页面校验
This commit is contained in:
@@ -173,6 +173,14 @@ jQuery.validator.addMethod("compareDate", function(value, element, param) {
|
||||
return true;
|
||||
}, "结束时间不能早于开始时间");
|
||||
|
||||
jQuery.validator.addMethod("invisibleChar", function(value, element) {
|
||||
var reg = new RegExp(/\t|\r|\n/);
|
||||
if (value.match(reg)) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
}, "请输入可见字符");
|
||||
|
||||
//掩码校验,超过两位不得以0开头
|
||||
jQuery.validator.addMethod("notStartZero",function(value, element) {
|
||||
if(value.length>1&&value.length<6){
|
||||
|
||||
Reference in New Issue
Block a user