简单教程
提交运行
代码编辑器:
<script> var uri="my test.php?name=ståle&car=saab"; document.write(encodeURI(uri)+ "<br>"); document.write(decodeURI(uri)); </script>
运行结果: