ITeye博客

IE6下URL有中文的解决方案

lshh83 · 2009-02-20 10:54 · web · 非技术 · 浏览器 · Java · Firefox · Web · Markdown

在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]

评论(1)

  1. #1 楼 · chbest · 2009-03-19 11:17

    你应该去关心一下get和post编码格式. 这不是bug

评论功能维护中,当前仅展示历史评论。