正序倒序

<tr ng-repeat="g in goods | filter:{gname:name,tel:sj,state:fh} | orderBy:oid">

<input type="button" value="^" ng-click="kk()"/>

var ids = true;
    $scope.kk = function(){
     if(ids){
      $scope.oid = "id";
      ids = false;
     }else{
      $scope.oid = "-id";
      ids = true;
     }
    };

猜你喜欢

转载自blog.csdn.net/qq494891241/article/details/80803285