リンクを確認しても問題はありません。これは私がコンソールに取得していますエラーです:
がGET http://localhost:60789/api.openweathermap.org/data/2.5/weather?q=Tel%20Aviv%2CIL&units=metric&APPID=the与えられた数404(見つかりません)
$(document).ready(function() {
var getIP = 'http://ip-api.com/json';
var openWeatherMap = 'api.openweathermap.org/data/2.5/weather'
$.getJSON(getIP).done(function(location) {
$.getJSON(openWeatherMap, {
q: location.regionName + "," + location.countryCode,
units: 'metric',
APPID: 'Here iam giving my appid'
}).done(function (weather) {
console.log(weather);
$('ul:first-child').html(weather.name + "," + weather.sys.country);
})
});
});
GETリクエストで明らかに問題が示されています。誰かが絶対リンクを使用していません。 – epascarello