XMLHttpRequest
写道
<script>
function newXMLHttpRequest(){
var xmlhttp = false;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}esle if(window.ActiveXObejct){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e1){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e2){
//
}
}
}
return xmlhttp;
}
</script>
function newXMLHttpRequest(){
var xmlhttp = false;
if(window.XMLHttpRequest){
xmlhttp = new XMLHttpRequest();
}esle if(window.ActiveXObejct){
try{
xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
}catch(e1){
try{
xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
}catch(e2){
//
}
}
}
return xmlhttp;
}
</script>