ng-bind是从$scope -> view的单向绑定
ng-modle是$scope <-> view的双向绑定
                    <form role="form" class="form-inline">
                    
<div class="form-group"> <label for="nj">年级:</label> <select name="nj" id="nj" class="form-control" ng-model="myNJ">> <option ng-repeat="op in njs " value="{{op.id}}">{{op.name}}</option> </select> </div>
<div class="form-group"> <label for="zy">年级:</label> <select name="zy" id="zy" class="form-control" ng-model="myZY"> <option ng-repeat="op in zys " value="{{op.id}}">{{op.name}}</option> </select> </div>
<button type="submit" class="btn btn-primary" id="chaxun" ng-click="fn1()" >查询</button> </form>

 

posted on 2019-08-25 12:18  qqhfeng16  阅读(494)  评论(0编辑  收藏  举报