js正则表达式验证手机号码

var phone = $('#tel').val();
if(!(/^1[34578]\d{9}$/.test(phone))){
     alert("手机号码有误,请重填");  
     return false;
}

发表评论

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: