$ window.height未定义。哪里有问题?
原文链接:https://www.f2er.com/angularjs/146070.htmlFoodSearchControllers.controller('homeCtrl',['$scope','$http','$window','filterArgs',function($scope,$http,$window,filterArgs) { $scope.popupHeight = $window.height; console.log($scope.popupHeight); }]);