手机号校验,呵呵,简单的
function validateMobile(value) {
var reg = /^13[0-9]{1}[0-9]{8}$|^15[012356789]{1}[0-9]{8}$|^18[012356789]{1}[0-9]{8}$/;
if (reg.test(value)) {
return true;
}
return false;
}
2023-10-17 23:09:58
手机号校验,呵呵,简单的
function validateMobile(value) {
var reg = /^13[0-9]{1}[0-9]{8}$|^15[012356789]{1}[0-9]{8}$|^18[012356789]{1}[0-9]{8}$/;
if (reg.test(value)) {
return true;
}
return false;
}