110,534
社区成员
发帖
与我相关
我的任务
分享
<script type="text/javascript">
window.onload = function()
{
var xmlHttp;
if (window.ActiveXObject) {
xmlHttp = new ActiveXObject("Microsoft.XMLHTTP");
}
else if (window.XMLHttpRequest) {
xmlHttp = new XMLHttpRequest();
}
xmlHttp.open("POST","ReportMenu.aspx",true);
xmlHttp.send(null);
//请求状态改变事件触发handleStateChange功能
xmlHttp.onreadystatechange = function(){
if(xmlHttp.readystate == 4 || xmlHttp.readyState=="complete"){
if(xmlHttp.status == 200){
document.write(xmlHttp.responseText);
}
}
}
return xmlHttp;
}
</script>