study
패스트캠퍼스 챌린지 11일차
페이징 구현하기 const container = document.querySelector('#root'); const ajax = new XMLHttpRequest(); const NEWS_URL = 'https://api.hnpwa.com/v0/news/1.json' const CONTENT_URL = 'https://api.hnpwa.com/v0/item/@id.json'; const store = { currentPage: 1, } function getData(url){ ajax.open('GET', url, false); // method, Url, async ajax.send(); return JSON.parse(ajax.response); } function newsFeed(){ const ..
2022. 2. 3. 09:59