40

中高级前端必须要了解的--JS中的内存管理

 4 years ago
source link: https://juejin.im/post/5d0706a6f265da1bc23f77a9
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.
前言 像C语言这样的底层语言一般都有底层的内存管理接口,比如 malloc()和free()用于分配内存和释放内存。 而对于JavaScript来说,会在创建变量(对象,字符串等)时分配内存,并且在不再使用它们时“自动”释放内存,这个自动释放内存的过程称为垃圾

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK