<strong><span style="font-size:18px;"><html>
<head>
<title>Ajax</title>
<script type="text/javascript">
function createxmlhttp(){
val xmlhttp;
if(window.XMLHttpRequest) //支持火狐、欧朋、谷歌等浏览器
{
xmlhttp=new XMLHttpRequest();
}
else
{
try
{
xmlhttp=new ActiveXObject("Msxml2.XMLHttpRequest");
}
catch(e)
{
try{
xmlhttp=new ActiveXObject("Mircosoft.XMLHttpRequest");
}
catch(ex){alert("创建xmlhttprequest出错!");}
}
}
return xmlhttp;
}
</script>
</head>
</html></span></strong>
仅当做笔记使用