0
我想從Google Api獲取json數據,但使用get方法和jsonp方法,這是行不通的。AngularJS [Ionic] - Google apis XMLHttpRequest無法加載
她是我的代碼:
$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')
});
I'have XMLHttpRequest cannot load
。
哼,我對角與離子框架,它是一個應用程序的iOS Android- – Shinix