ajax核心代码ajax.js

Posted on 2008-07-17 01:48 飞呀飞 阅读(1164) 评论(0)  编辑 收藏 引用 网摘 所属分类: php
function getXmlHttp(){
    var http_request 
= false;
    
if (window.XMLHttpRequest){
        http_request 
= new XMLHttpRequest();
        
if (http_request.overrideMimeType){
            http_request.overrideMimeType(
'text/xml');
        }
    }
else if (window.ActiveXObject){
        
try{
            http_request 
= new ActiveXObject("Msxml2.XMLHTTP");
        }
        
catch (e){
            
try{
                http_request 
= new ActiveXObject("Microsoft.XMLHTTP");
            }
catch (e)
            {}
        }
    }


只有注册用户登录后才能发表评论。
网站导航:

Copyright © 飞呀飞