W3School TIY
编辑您的代码:
<html> <body> <script type="text/javascript"> var test1="../My first/index.htm"/*tpa=http://www.jb51.net/My first/*/ document.write(encodeURI(test1)+ "<br />") document.write(decodeURI(test1)) </script> </body> </html>
查看结果: