首先需要建立一个输入框进行数据绑定:

                 <div class="box-tools pull-right">
<div class="has-feedback">
品牌名称:<input ng-model="searchEntity.name"> 品牌首字母:<input ng-model="searchEntity.firstChar">
<button class="btn btn-default" ng-click="reloadList()">查询</button>
</div>
</div>
            $scope.searchEntity={};
//条件查询
$scope.search=function(page,size){ $http.post('../brand/search.do?page='+page +'&size='+size, $scope.searchEntity).success(
function(response){
$scope.list=response.rows;//显示当前页数据
$scope.paginationConf.totalItems=response.total;//更新总记录数
}
); }

就可以完成了,前提是必须要有这个框

05-28 21:41