Encode a valid url into a valid pathname
This question already has an answer here:
If you want to insert your encoded URL into a path you should use encodeURIComponent which will encode path boundary characters like / , ? , & and so on.
http://www.w3schools.com/jsref/jsref_encodeURI.asp
链接地址: http://www.djcxy.com/p/26544.html上一篇: 读取servlet中的整个编码URI
下一篇: 将有效的网址编码为有效的路径名
