终于摸索出答案了,自己回答吧,哈哈哈! app.controller('ctl', function($scope){ $scope.myOrder = function(item){ return item.orderNum > 3: true: false; } }); myOrder 返回 true,item往后排列,否则往前排。
终于摸索出答案了,自己回答吧,哈哈哈!
myOrder 返回 true,item往后排列,否则往前排。