阮一峰的IT笔记:首页 -> 分类 -> Javascript 查看所有文章:按分类 | 按月份

创建XMLHttpRequest对象的一个实例

var xmlHttp;

function createXMLHttpRequest() {
    if (window.ActiveXObject) {
        xmlHttp = new ActiveXobject("Microsoft.XMLHTTP");
    }
    else if (window.XMLHttpRequest) {
        xmlHttp = new XMLHttpRequest();
    }
}

« 透明效果的实现 | 首页 | XMLHttpRequest对象的方法 »

About

This page contains a single entry from the blog posted on 2007年05月05日 15:30.

The previous post in this blog was 透明效果的实现.

The next post in this blog is XMLHttpRequest对象的方法.

Many more can be found on the main index page or by looking through the archives.

Powered by
Movable Type 3.33

Post a comment