IE6下URL有中文的解决方案
在web开发中最头痛的问题就是各个浏览器不兼容,其中IE6更为严重,下面就说下在开发中遇到的一个小问题. [code="java"] 编辑 [/code] 当groupName的值为中文时,在firefox和ie7下都是没有错误的,但在ie6下点击编辑时会没有反应。。。。。。 我的解决方案是: [code="java"] 编辑 [/code] js方法如下: [code="java"] function update(groupName){ groupName = encodeURI(groupName); document.allGroups.action="admin/thresholds/index.htm?groupName="+groupName; document.allGroups.submit(); } [/code]
你应该去关心一下get和post编码格式. 这不是bug