51

JavaScript中的垃圾回收和内存泄漏

 5 years ago
source link: https://juejin.im/post/5cb33660e51d456e811d2687
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.
前言 程序的运行需要内存。只要程序提出要求,操作系统或者运行时就必须供给内存。所谓的内存泄漏简单来说是不再用到的内存,没有及时释放。为了更好避免内存泄漏,我们先介绍Javascript垃圾回收机制。 在C与C++等语言中,开发人员可以直接控制内存的申请和回收。

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK