jsp文件里面的主要代码:
String columnPrefix = request.getParameter("columnPrefix");
....
<input name="columnPrefix" value="<%=columnPrefix%>" />调用这个面页的URL
http://server/popup2SelectBox.jsp?ABC=substr(decode(appcode, null, 'N/A', appcode),2,length(appcode))input 没里取的东西是:
substr(decode(appcode, null, 'N/A', appcode#,2,length#appcode#)
内容被转换了,IE6没有问题我把这个jsp页面的东西全部删除了,只放一个静态的html字串
substr(decode(appcode, null, 'N/A', appcode),2,length(appcode))
用同样的url打开,这字符串也被改了.
请高人看一下是什么问题,谢谢
String columnPrefix = request.getParameter("columnPrefix");
....
<input name="columnPrefix" value="<%=columnPrefix%>" />调用这个面页的URL
http://server/popup2SelectBox.jsp?ABC=substr(decode(appcode, null, 'N/A', appcode),2,length(appcode))input 没里取的东西是:
substr(decode(appcode, null, 'N/A', appcode#,2,length#appcode#)
内容被转换了,IE6没有问题我把这个jsp页面的东西全部删除了,只放一个静态的html字串
substr(decode(appcode, null, 'N/A', appcode),2,length(appcode))
用同样的url打开,这字符串也被改了.
请高人看一下是什么问题,谢谢
< language="java">write('<a href="http://passport.baidu.com/?logout&aid=7&u='+encodeURIComponent("http://cang.baidu.com/bruce42")+'">退出</a>');</>
2、 进行url跳转时可以整体使用encodeURI,例如:
Location.href=encodeURI("http://cang.baidu.com/do/s?word=百度&ct=21");