论坛首页 招聘求职论坛

IE6下URL有中文的解决方案

浏览 2547 次
精华帖 (0) :: 良好帖 (0) :: 隐藏帖 (3)
作者 正文
   发表时间:2009-02-20   最后修改:2009-02-20
在web开发中最头痛的问题就是各个浏览器不兼容,其中IE6更为严重,下面就说下在开发中遇到的一个小问题.
  <a href="admin/thresholds/index.htm?groupName=${group[0]}">编辑</a>

当groupName的值为中文时,在firefox和ie7下都是没有错误的,但在ie6下点击编辑时会没有反应。。。。。。
   我的解决方案是:
<a href="javascript:void(0);" onclick="update('${group[0]}');return false;">编辑</a>

js方法如下:
function update(groupName){
		groupName = encodeURI(groupName);
		document.allGroups.action="admin/thresholds/index.htm?groupName="+groupName;
		document.allGroups.submit();
	}
   发表时间:2009-03-19  
你应该去关心一下get和post编码格式.
这不是bug
0 请登录后投票
论坛首页 招聘求职版

跳转论坛:
Global site tag (gtag.js) - Google Analytics