Do you know what may cause memory leaks in JavaScript?

前端 未结 5 833
星月不相逢
星月不相逢 2020-11-30 22:41

Do you know what may cause memory leaks in JavaScript? I am interested in browsers: IE 7, FireFox 3, Safari 3

5条回答
  •  野性不改
    2020-11-30 23:09

    In general; circular references are the cause of many problems. I remember IE 6 (not sure if it applies to 7) leaking quite badly with XMLHTTP... setting onreadystatechange = null once it was finished with fixed it.

提交回复
热议问题