任何人都可以帮我解决此问题:
.service('CommunFunctionsService', function(){
var s = {};
s.getData = function() {
// do something
}
return s;
})
.controller('FirstCtrl', function(CommonFunctionsService, $scope){
$scope.getData = function(){
CommunFunctionsService.getData();
}
})
.controller('SecondController', function(CommonFunctionsService, $scope){
$scope.getDataToo= function(){
CommunFunctionsService.getData();
}
})
我想选择纬度和经度值。
答案 0 :(得分:2)
这将选择列并返回匿名类型。
.Select(b => new { Longitude = b.Longitude, Latitude = b.Latitude })