JS:
原文链接:https://www.f2er.com/angularjs/142892.htmlfunction UserController($scope,User,Group){ $scope.users = User.query(); $scope.isNewUser = function(){ var len = $scope.users.lenght; console.log(len); //undefined for(var i = 0; i < len; i++){ if($scope.users[i].created_at == null){ return false; } } return true; } } }