Develop
2013.04.23 16:24
[js] 인터넷 주소(URL) 인코딩 ㅋㅋ
조회 수 11347 댓글 0
URL 인코딩~
<html> <body> <script type="text/javascript"> var s; s = encodeURI('http://google.com/소 설.html'); document.write('<p>' + s + '<p>'); //결과 http://google.com/%EC%86%8C%20%EC%84%A4.html s = encodeURIComponent('http://google.com/소 설.html'); document.write('<p>' + s + '<p>'); //결과 http%3A%2F%2Fgoogle.com%2F%EC%86%8C%20%EC%84%A4.html s = escape('http://google.com/소 설.html'); document.write('<p>' + s + '<p>'); //결과 http%3A//google.com/%uC18C%20%uC124.html </script> </body> </html>
번호 | 분류 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|---|
801 | System/OS | [linux] ssh에서 원격 파일 전송하기.. | hooni | 2013.04.23 | 14148 |
800 | System/OS | [linux] SSH에 대한 기본 설명과 설치/설정 | hooni | 2013.04.23 | 10489 |
799 | System/OS | [linux] split 명령어 | hooni | 2014.03.11 | 4300 |
798 | System/OS | [linux] sendmail 설정/사용 | hooni | 2003.04.23 | 14569 |
797 | System/OS | [linux] root도 삭제하지 못하는 파일 속성 | hooni | 2003.04.23 | 12412 |
796 | System/OS | [linux] root 전환시 패스워드 없이 su 사용하기 | hooni | 2013.12.22 | 12680 |
795 | System/OS | [linux] resolv.con 초기화 되는 문제 | hooni | 2014.04.05 | 4607 |
794 | System/OS | [linux] ProFTPD 타임아웃 설정 | hooni | 2003.04.23 | 12850 |
793 | System/OS | [linux] Proftpd 설치 가이드 | hooni | 2003.04.23 | 13011 |
792 | System/OS | [linux] Oracle8.1.6, Mysql+PHP+Zend Optimizer+APACHE+Tomcat(jsp,servlet)+IMAP+gd | hooni | 2003.04.23 | 32442 |
791 | System/OS | [linux] Masquerade 가상 ip분할기법 | hooni | 2003.04.23 | 47935 |
790 | System/OS | [linux] man 명령어 뽀개기.. | hooni | 2003.04.23 | 8721 |