문자열 인코딩 : 스페이스같이 생겼다고 다 같은 스페이스가 아니다
https://www.tutorialspoint.com/how-to-encode-a-string-in-javascript How to encode a string in JavaScript? Best Seller 74 Lectures 10 hours Lets Kode It www.tutorialspoint.com - 콘솔로 찍어본 ' '가 다 같은 ' '가 아니다. 내 눈에 똑같아 보인다고 컴퓨터는 똑같이 인식하지 않는다. 같은 지 다른 지 확인해보는 법? escape(string)을 찍어보라. - 노드의 textContent는 ' '와 를 복합적으로 사용한다. - %20과 %A0이 달라도 string.include(target) 메서드가 작동하지 않는다. 참고 : What's the difference ..
2022.11.28