Thief of Wealth
Published 2019. 10. 21. 11:17
fetch json파싱하는법 개발/Web Programming
function getCoinAPI() {
    fetch(API_URL)
    .then(response => response.json()) //json
    .then( data => {
            console.log(data);
        }
    
    )
}


처럼해야한다


function getCoinAPI() {
    fetch(API_URL)
    .then( data => {
            console.log(data);
        }
    
    )
}


이거처럼 하면 이상한 객체가 출력된다.

profile on loading

Loading...