73

中高级前端必须了解的--JS中的栈内存和堆内存

 4 years ago
source link: https://juejin.im/post/5d116a9df265da1bb47d717b
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.
引言 JS的内存空间分为栈(stack)、堆(heap)、池(一般也会归类为栈中)。 其中栈存放变量,堆存放复杂对象,池存放常量,所以也叫常量池。 栈数据结构 栈是一种特殊的列表,栈内的元素只能通过列表的一端访问,这一端称为栈顶。 栈被称为是一种后入先出(LI

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK