----------------------------------------------------------------------------------------------
行: 36
字符: 6
错误: 缺少对象
代码: 0
URL: http://localhost:8080/kimajax/
-----------------------------------------------------------------------------
function proce(){
if(XMLHttpReq.readyState==4){
if(XMLHttpReq.status==200){
alert(XMLHttpReq.responsetext);
var res=XMLHttpReq.responseXML.getElementsByTagName("content")[0].firstChild.data;
window.alert(res);
}else{
window.alert("Error");
}
}
}
--------------------------------------------------------------------------------
发现错误在:
response.setContentType("text/html;charset=UTF-8");
应为:
response.setContentType("text/xml;charset=UTF-8");
!!低级失误!!