1》区号+电话+分机号都在一个input填写 正则固定电话校验 2》区号+电话+分机号分开填写的 <el-form-item label="公司电话"> <el-col :span="6"> <el-form-item label=" " prop="telephone.a" label-width="0px"> <el-input placeholder="区号" v-model="ruleFormCantact.telephone.a"></el-input...
(value)); },"请正确填写电话号码");//电话号验证jQuery.validator.addMethod("isphone",function(value, element) {vartel = /^\d{6,11}$/;returnthis.optional(element) ||(tel.test(value)); },"请正确填写电话号码");//分机号验证jQuery.validator.addMethod("isextensioncode",function(value, ...
8})|(\d{4}|\d{3})-(\d{7,8})|(\d{4}|\d{3})-(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1})|(\d{7,8})-(\d{4}|\d{3}|\d{2}|\d{1}))$/)//手机号正则表达式(11位手机号码3-4位区号,7-8位直播
function isnum1(id) { var str = document.getElementById(id).value;if (str != "" && str != null) { var zz = /^13[0-9]{1}[0-9]{8}$|^15[0-9]{1}[0-9]{8}$|^18[8-9]{1}[0-9]{8}$/;if (!str.match(zz)) { alert("手机格式不正确!");document.getE...