代码?是不是写的不兼容。
var xmlhttp;
function createXmlhttp(){
    if(window.XMLHttpRequest){
        xmlhttp = new XMLHttpRequest();
            }
            else if(window.ActiveXObject){
            try{
            xmlhttp = new ActiveXObject("Msxml2.XMLHTTP");
            }catch(e){
            xmlhttp = new ActiveXObject("Microsoft.XMLHTTP");
            }
        }
        if(!xmlhttp){
        window.alert("Your broswer not support XMLHttpRequest!");
        }
    return xmlhttp;
}