"\" -> "%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>