当前位置: 代码迷 >> JavaScript >> js验证搬动号码
  详细解决方案

js验证搬动号码

热度:376   发布时间:2013-12-13 00:50:19.0
js验证移动号码

移动号码验证

function chkMobileCode(value){
    var mobile13 = /^13[4-9]\d{8}$/;
    var mobile15 = /^15[012789]\d{8}$/;
    var mobile14 = /^14[7]\d{8}$/;
    var mobile18 = /^18[2378]\d{8}$/;
    return (mobile13.test(value) || mobile15.test(value) || mobile14.test(value) || mobile18.test(value));
}

?

  相关解决方案