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);
}
)
}
이거처럼 하면 이상한 객체가 출력된다.
'개발 > Web Programming' 카테고리의 다른 글
npm 자체 에러가 의심될때 (0) | 2019.10.27 |
---|---|
node_modules/path-to-regexp/index.js:63 에러 (0) | 2019.10.26 |
Git add, commit, push 되돌리기~ (0) | 2019.10.18 |
JavaScript 초를 00:00:00으로 바꾸는 템플릿 (0) | 2019.10.17 |
Chromium원정대 (0) | 2019.10.08 |