⛔ 오류메세지
Uncaught TypeError: Cannot read properties of null (reading 'replace')
✅ 해결방법
객체에 null 값이 들어갔는데 replace() 메소드를 호출해서 발생한 에러였다.
값을 받아온 이후에 null 값이 아니면 replace()를 실행하도록 하여 해결하였다.
'Development > HTML & CSS & Javascript' 카테고리의 다른 글
[Javascript - ES6 문법 시리즈1] var, let, const 비교 & Property Shorthand (0) | 2022.11.08 |
---|---|
[HTML] input 태그, label 태그 (0) | 2022.04.19 |