"\" -> "%5C"
"/" -> "/" 可以用下面的例子来进行测试.
---------------------------------
<html>
<head>
<title>test url encoding </title>
</head>
<script language="javascript">
function doTest(){
alert(encodeURI(text1.value));
}
</script>
<body>
<b>test url encoding </b>
<hr/>
<input type="text" id="text1" value="">
<input type="button" value="doTest" onclick="doTest()">
</body>
</html>
"/" -> "/" 可以用下面的例子来进行测试.
---------------------------------
<html>
<head>
<title>test url encoding </title>
</head>
<script language="javascript">
function doTest(){
alert(encodeURI(text1.value));
}
</script>
<body>
<b>test url encoding </b>
<hr/>
<input type="text" id="text1" value="">
<input type="button" value="doTest" onclick="doTest()">
</body>
</html>
decodeuri()
escape()
/是/
\是\
其规律是 &#该字符的ASCII编码; 这样子
你可以看一下相关HTML实体的东西
http://www.w3pop.com/learn/view/p/1/o/0/doc/html_entities/