Page 114 - AngularJS权威教程
P. 114

94  第 10 章  指令详解


                        ng-model="signup.username"
                        ng-minlength="3"
                        ng-maxlength="20"
                        ensure-unique="username" required />
                 在这个自定义验证中,每当ngModel中对应的字段发生变化就会向服务器发送请求,以检查
             用户名是否是唯一的。
   109   110   111   112   113   114   115   116   117   118   119