RegExp = /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/;
if (RegExp.test(consult_Phone) == false) {
$("#warning").html("号码格式不正确或者位数不正确");
}
转载于:https://www.cnblogs.com/tuoxiong/p/6177855.html
RegExp = /^((0\d{2,3}-\d{7,8})|(1[3584]\d{9}))$/;
if (RegExp.test(consult_Phone) == false) {
$("#warning").html("号码格式不正确或者位数不正确");
}
转载于:https://www.cnblogs.com/tuoxiong/p/6177855.html