angularjs表单验证
2017-12-12 本文已影响0人
我有故事你有酒吗_56dd
<div class="col-md-6">
<div class="form-group">
<label>手机号<span class="symbol required"></span></label>
<input ng-model="cellphone" name="cellphone" type="tel" ng-pattern="/^[1][358][0-9]{9}$/"
class="form-control" required/>
<p>
<span style="color: red" ng-show="Form.availableShipQty.$invalid">
<span ng-show="Form.cellphone.$error.cellphone">请输入正确的手机号</span>
</span>
</p>
</div>
</div>