刚解决了一个过滤结果集判断的问题,怕忘了,记录记录
1、搜索框,监听aac()方法
<input ng-keyup="aac()" type="text" class="input" ng-model="fil">
2、ng-repeat循环,设置filter参数
<div ng-repeat="work in works.works | filter:{$:fil} | orderBy:sel" class="col-average-2 table-bordered" >
3、返回过滤结果数组
$scope.result = $filter('filter')($scope.works.works, {$:$scope.fil})
参考页面:https://checkcheckzz.gitbooks.io/angularjs-learning-notes/content/chapter8/8-2.html