xmlHttp 会被垃圾收集吗?如果是,什么时候?
function foo (param)
{
var xmlHttp = GetXmlHttpRequestObject();
xmlHttp.onreadystatechange = function()
{
if (xmlHttp.readyState == 4 && xmlHttp.status == 200)
{
// do something involving param and xmlHttp.responseXML
}
}
xmlHttp.open("GET", "GetAsyncData.ashx", true);
xmlHttp.send();
}