我多次查看此代码,但我不知道问题出在哪里: http://pastebin.com/G9hKn7BU
<html>
<head>
<script type = "text/javascript">
function load(){
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}else{
xmlhttp = new ActiveXObject('Microsoft.XMLHTTP');
}
xmlhttp.onreadystatechange = function (){
if(xmlhttp.readyState == 4 && xmlhttp.status == 200 ){
document.getElementById('adiv').innerHTML = xmlhttp.responseText;
}
}
xmlhttp.open('GET','inculde.inc.php',true);
xmlhttp.send();
}
</script>
</head>
<body>
<input type="submit" onclick = "load();">
<div id ="adiv"></div>
</body>
</html>
我在任何浏览器中运行它但没有任何反应。