46

浏览器中的垃圾回收与内存泄漏

 5 years ago
source link: https://juejin.im/post/5cbae494f265da03502b36b3
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
1. 介绍 浏览器的 Javascript 具有自动垃圾回收机制(GC:Garbage Collecation),也就是说,执行环境会负责管理代码执行过程中使用的内存。其原理是:垃圾收集器会定期(周期性)找出那些不在继续使用的变量,然后释放其内存。但是这个过程

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK