/* 检查手机号 */
owner.checkPhone = function (phone) {
phone = phone || '';
if(phone.length != 11) {
$.toast('请输入正确手机号');
return false;
}
var myreg = /^[1][3,4,5,7,8][0-9]{9}$/;
if(!myreg.test(pone)) {
$.toast('请输入正确手机号');
return false;
} else {
return true;
}
}
Be the first to comment
You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.