+ -
当前位置:首页 → 问答吧 → AJXS中的乱码问题

AJXS中的乱码问题

时间:2011-09-25

来源:互联网

function go(){
                        createXMLHttpRequest();
                        xmlHttp.onreadystatechange=callback;
                        xmlHttp.open("post","index.jsp");
                        xmlHttp.setRequestHeader("Content-Type","application/x-www-form-urlencoded");
                        xmlHttp.setRequestHeader("Accept-language","zh-cn");
                        
                        xmlHttp.send("startnum="+document.getElementById("startnum").value);
                 }

我在JSP中用request.setCharacterEncoding("GBK");
结果还是乱码 请问大家怎么回事呀

作者: wtkelly   发布时间: 2011-09-25

ajax

作者: shw3588   发布时间: 2011-09-27

相关阅读 更多