function Save(){ $.ajax({ url: 'Accept.jsp', type: 'post', dataType: 'xml', data: 'name='+encodeURI($("#name").val())+'&sex='+$("#form1 input[name=sex]:checked").val()+'&address='+$("#address").val()+'&date='+new Date(), timeout: 2000, error: function(xml){alert('发生错误:' + xml.responseText);}, success: function(xml){ $(xml).find('student').each(function(){ var item_text = $(this).text(); $(' <p> </p>').html(HtmlCode(item_text)).appendTo('ol'); }) } }) }
详细解决方案
jsp 在ie6上 url中文传参乱码 encodeURI 解决
热度:469 发布时间:2012-09-12 09:21:30.0
相关解决方案
- encodeURI 传接字符串 是否有长度限制
- 个别字符乱码有关问题。js encodeURI(str)转码 后台java.net.URLDecoder.decode(str, "UTF-8")转码
- encodeURI 步骤
- Js中escape(),encodeURI()和encodeURIComponent()使用和比较
- 处置中文乱码(新,比较万能)(encodeURI)
- escape encodeURI encodeURIComponent的运用和区别
- js的escape()、encodeURI()、encodeURIComponent()差异详解
- jsp 在ie6上 url中文传参乱码 encodeURI 解决
- js 中escape encodeURI encodeURIComponent