배열 조인 (1) 썸네일형 리스트형 javascript hacker new app 라우터?화면 만들기 //xmlhtpp을 저장 할 저장소 생성 const ajax = new XMLHttpRequest(); const content = document.createElement('div'); const NEWS_URL = 'https://api.hnpwa.com/v0/news/1.json'; const CONTENT_URL = 'https://api.hnpwa.com/v0/item/@id.json' const container = document.getElementById('root'); function getData(url){ ajax.open('GET', url, false); ajax.send(); // 데이터 가져오기 return JSON.parse(ajax.response); } const news.. 이전 1 다음