【发布时间】:2016-09-06 20:46:40
【问题描述】:
我想从 Google Api 获取 json 数据,但是使用 get 方法和 jsonp 方法这是行不通的。
她是我的密码:
$http({
method: 'get',
url: 'https://maps.googleapis.com/maps/api/place/search/json?location=46.2030350,6.1522080&radius=500&types=restaurant&sensor=false&key=MY_KEY&callback=?'
}).then(function successCallback(response,data) {
console.log(data)
}, function errorCallback(response) {
console.log('nope')
});
我有XMLHttpRequest cannot load。
【问题讨论】:
标签: angularjs json google-maps xmlhttprequest