你知道什么可能导致JavaScript中的内存泄漏吗? [英] Do you know what may cause memory leaks in JavaScript?
问题描述
您知道JavaScript中可能导致内存泄漏的原因吗?
我对浏览器感兴趣:IE 7,FireFox 3,Safari 3
Do you know what may cause memory leaks in JavaScript? I am interested in browsers: IE 7, FireFox 3, Safari 3
推荐答案
有一篇很好的文章关于< a href =http://www.javascriptkit.com/javatutors/closuresleak/index.shtml =noreferrer> JavaScript和内存泄漏 。它没有具体涉及浏览器,而是描述了内存泄漏和JavaScript的整个问题。
There is a nice article about JavaScript and memory leaks. It does not specific about on browser, it rather describes the whole problematic of memory leaks and JavaScript.
- JavaScript and memory leaks
- Introducing the closure
- More leakage patterns
- Conclusion
我认为这是一个更好的方法在为公众开发网站时,尽可能不为浏览器提供优化服务。
I think it is a better approach to be as browser unspecific as possible insted of optimizing for a few browsers, when developing a website for the public.
这篇关于你知道什么可能导致JavaScript中的内存泄漏吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!