freecodecamp 작업을 알아 내려고했지만, youtube 튜토리얼 https://www.youtube.com/watch?v=XZXg_fuyYnI&t=1385s을 추적하는 것조차도 작동하지 않습니다. 이 코드에서 잘못된 점을 알려주십시오.현지 날씨 앱 FreeCodeCamp
var API_KEY = "xxxxxxxxxxxxxxxxxxxxxx";
$(function() {
var loc;
$.getJSON('http://ipinfo.io', function (d) {
console.log("assigning the data...")
loc = d.loc.split(" , ");
console.log(loc);
$.getJSON('http://api.openweathermap.org/data/2.5/weather?lat=' + loc[0] + '&lon=' + loc[1] + '&APPID=' + API_KEY, function (wd) {
console.log("got the data ,", wd);
})
})
})
몇 가지 오류가 있습니까? – DanilGholtsman
내가 지금 당장 생각할 수있는 것은
DanilGholtsman