如何使用复选框在angularJS中过滤多个值(OR操作)
@H_301_1@<ul ng-repeat="movie in movies |filter:Filter.Comedy | filter:Filter.Action | filter:Filter.Drama">
<li>{{movie.name}}</li>
</ul>
<label>Comedy</label><input type="checkBox" ng-model="Filter.Comedy" ng-true-value="Comedy" data-ng-false-value=''/><br/>
<label>Action</label><input type="checkBox" ng-model="Filter.Action" ng-true-value="Action" data-ng-false-value=''/><br/>
<label>Drama</label><input type="checkBox" ng-model="Filter.Drama" ng-true-value="Drama" data-ng-false-value=''/>
原文链接:https://www.f2er.com/angularjs/144328.html