공식과 사용 방법계산 공식·처리 방식encodeURIComponent / decodeURIComponent로 URL 구성 요소를 변환.예시공백 → %20.전체 URL이 아닌 개별 경로·쿼리 값 변환에 적합합니다. + 문자는 자동으로 공백 변환하지 않습니다.