这是数组的样子:
[GeoPlace {
city: [Getter],
province_state: [Getter],
country: {
long_name: 'Greece',
short_name: 'GR'
},
formatted_address: 'Greece',
location: {
lat: 39.074208,
lng: 21.824312
},
location_type: 'APPROXIMATE',
location_bounds: {
northeast: [Object],
southwest: [Object]
}
}]
这是我的代码的样子:
if(!_.isNil(res) && _.isNil(err)) {
console.log(res);
}
我希望只获取console.log中显示的位置。