mirror of
https://github.com/PGYER/codefever.git
synced 2026-05-08 14:36:58 +08:00
4 lines
162 B
JavaScript
Executable File
4 lines
162 B
JavaScript
Executable File
jQuery.validator.addMethod("alnum",function(value,element) {
|
|
return this.optional(element) || /^[a-zA-Z0-9]+$/.test(value);
|
|
},"只能包含字母或数字");
|