js验证手机号码和固定电话

http://caibaojian.com/regexp-example.html


    var phone = this.d.phone
    if(!(/^1[34578]\d{9}$/.test(phone))){ 
      this.msg("店长手机号码有误");
      return false; 
    }

你可能感兴趣的:(js/jq)