$location 服务, 它可以返回当前页面的 URL 地址。 app.controller('customersCtrl', function($scope, $location) { $scope.myUrl = $location.absUrl(); });