You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
212 B
Plaintext
9 lines
212 B
Plaintext
11 months ago
|
function isMobil(s) {
|
||
|
var patrn = /^[+]{0,1}(\d){1,3}[ ]?([-]?((\d)|[ ]){1,12})+$/;
|
||
|
if (!patrn.exec(s.value))
|
||
|
{
|
||
|
alert('非法的手机号码.');
|
||
|
return false;
|
||
|
}
|
||
|
return true
|
||
|
}
|