url之转码
<script type="text/javascript">
var test1="http://www.w3school.com.cn/My first/"
document.write(encodeURIComponent(test1)+ "<br />")
document.write(decodeURIComponent(test1))
</script>
http://www.w3school.com.cn/tiy/t.asp?f=jseg_decodeURIComponent