AngularJs 最新验证手机号码,成功测试通过
2017-07-21 17:48
316 查看
<form name="signUpForm" novalidate> <div class="form-group"> <div class="row clearfix"> <label for="tel1" class="col-xs-12" style="text-align: left">L张蒙号码1:</label> <div style="text-align: center" class="col-xs-12"> <input id="tel1" type="tel" name="tel1" data-ng-model="vm.tel1" ng-minlength="11" ng-pattern="/^1[3|5][0-9]\d{4,8}$/" required style="width: 80%;font-size: large" placeholder="请输入号码1:"/> </div> <div class="col-xs-12"> <p class="glyphicon glyphicon-ok input_result text-success" ng-if="signUpForm.tel1.$valid"></p> <p class="text-danger glyphicon glyphicon-remove" ng-if="signUpForm.tel1.$error.required&&signUpForm.tel1.$touched">电话不能为空!</p> <p class="text-danger glyphicon glyphicon-remove" ng-if="(signUpForm.tel1.$error.minlength||signUpForm.tel1.$error.maxlength||signUpForm.tel1.$error.pattern)&&signUpForm.tel1.$touched">请输入有效手机号!</p> </div></div></form>
相关文章推荐
- AngularJs 最新验证手机号码的实例,成功测试通过
- 最新手机号码验证正则表达式js版
- Android:最新最全的验证正确手机号码的工具类(2017)
- java 验证手机号码、电话号码(包括最新的电信、联通和移动号码)
- iOS最新验证电话号码与手机号码的正则方法
- 最新手机号码验证正则表达式js版
- c#最新验证是否电话号码和手机号码
- java 验证手机号码、电话号码(包括最新的电信、联通和移动号码)
- 关于最新手机号码验证的正则表达式(oc及swift)
- 最新手机号码验证正则表达式
- js验证手机号码(截止目前最新各种号段)
- 最新手机号码验证正则表达式
- 最新、可靠的用于验证手机号码和移动号码的正则表达式
- JavaScript验证手机号码代码简单代码实例(未测试)
- js正则表达式:验证邮箱格式、密码复杂度、手机号码、QQ号码(未测试)
- [C#] c# 验证手机号码 最新的17手机号
- 最新手机号码验证正则表达式
- 最新最全的Vista破解激活工具——成功激活并通过正版验证
- 手机号码最新验证
- js验证手机号码(最新)