js error1 Uncaught (in promise) TypeError: Cannot set properties of null (setting 'innerHTML') 공공 데이터로 받아온 xml파일 html 로 pasing 후 html에 태그로 보내주려고 하자 발생했다. async function load() { // 파일 가져오기 const response = await fetch(`url`); // 텍스트 형식으로 해석 const text = await response.text(); // XML 형식으로 해석 const xml = new DOMParser().parseFromString(text, 'application/xml'); const gameDataInput = () => { ... } gameDataInput(); .. 2024. 10. 5. 이전 1 다음