开发者

ajax has got memory leak?

ajax tutorial on w3school at http://www.w3schools.com/ajax/ajax_database.asp

In this function (function GetXmlHttpObject()), it creates a object:

 new XMLHttpRequest(); or new ActiveXObject("Microsoft.XMLHTTP");

but it doesn't delete this object after getting respons from se开发者_如何学运维rver.

Are there memory leaks ?


It's ok - Garbage Collection will pick it up for you.


The garbage collector will take care of it once it is no longer referenced.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜