PageSourceSearch

http://www.heyuan.gov.cn/wjs/jquery.ext.js

js heyuan.gov.cn collected 2026-10-02 08:04:37 UTC 1,843 bytes, 46 lines download raw bytes

1$.metadata.setType("attr", "vld");
2$.validator.addMethod("username", function(value) {
3	var p = /^[0-9a-zA-Z\u4e00-\u9fa5\.\-@_]+$/;
4	return p.exec(value) ? true : false;
5}, "只能输入字母、数字、中文和'_','-','@'符号");
6
7jQuery.validator.addMethod("isMobile", function(value,element) {
8	var length = value.length;
9	var mobile = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
10	return this.optional(element) || mobile.test(value);
11
12}, "请正确填写您的手机号码");
13
14
15jQuery.validator.addMethod("isTel", function(value,element) {
16	var length = value.length;
17	var tel = /^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/;
18	return this.optional(element) || tel.test(value);
19
20}, "请正确填写您的固定电话号码");
21
22jQuery.validator.addMethod("isPhone", function(value,element) {
23	var length = value.length;
24	var mobile = /^(0|86|17951)?(13[0-9]|15[012356789]|17[678]|18[0-9]|14[57])[0-9]{8}$/;
25	var tel = /^((0\d{2,3})-)(\d{7,8})(-(\d{3,}))?$/;
26	return this.optional(element) || (tel.test(value) || mobile.test(value));
27
28}, "请正确填写您的联系电话");
29
30jQuery.validator.addMethod("isIdCardNo", function(value,element) {
31	var length = value.length;
32	//身份证正则表达式(15位)
33	var isIDCard1=/^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{2}(\d|X|x)$/;
34	//身份证正则表达式(18位)
35	var isIDCard2=/^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}(\d|X|x)$/;
36	return this.optional(element) || (isIDCard1.test(value) || isIDCard2.test(value));
37
38}, "请正确填写您的身份证号码");
39
40jQuery.validator.addMethod("isZipCode", function(value,element) {
41	var length = value.length;
42	var zipCode = /^[1-9]{1}(\d+){5}$/;
43	return this.optional(element) || zipCode.test(value);
44
45}, "请正确填写您的邮政编码");
46

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.