nbsp; alert(e);
}
}
}
};
示例:
复制代码 代码如下:
<script type="text/javascript" src="xmlhttp.js"></script>
<script type="text/javascript">
function test(obj)
{
alert(obj.statusText);
}
XMLHttp.sendReq(''GET'', ''http://www.ugia.cn/wp-data/test.htm'', '''', test);
XMLHttp.sendReq(''GET'', ''http://www.ugia.cn/wp-data/test.htm'', '''', test);
XMLHttp.sendReq(''GET'', ''http://www.ugia.cn/wp-data/test.htm'', '''', test);
XMLHttp.sendReq(''GET'', ''http://www.ugia.cn/wp-data/test.htm'', '''', test);
alert(''Pool length:'' + XMLHttp._objPool.length);
</script>