手机号校验
This commit is contained in:
parent
0ffe00fa94
commit
0440400367
@ -59,6 +59,12 @@ if(typeof(telephone) != undefined && telephone!= "" ){
|
||||
alert("µç»°ºÅÂë¸ñʽ´íÎó");
|
||||
return false;
|
||||
}
|
||||
var myreg=/^[1][3,4,5,7,8][0-9]{9}$/;
|
||||
if (!myreg.test(telephone)) {
|
||||
alert("µç»°ºÅÂë¸ñʽ´íÎó");
|
||||
return false;
|
||||
}
|
||||
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user