日期:2014-05-16 浏览次数:20359 次
var xhr=window.ActiveXObject?new ActiveXObject("microsoft.xmlhttp"):new XMLHttpRequest(); alert(xhr) xhr.open("get","2.htm",true); xhr.onreadystatechange=function(){ if(4==xhr.readyState&&(200==xhr.status||0==xhr.status))alert(xhr.responseText); } xhr.send(null)