<input class="form-control" placeholder="请输入英文和数字" type="text" ng-model="edition" ng-pattern="/^[0-9a-zA-Z]+$/">
angularjs 正则判断用户输入的内容只能是数字或者字母
最新推荐文章于 2021-05-31 02:46:56 发布
<input class="form-control" placeholder="请输入英文和数字" type="text" ng-model="edition" ng-pattern="/^[0-9a-zA-Z]+$/">