阅读背景:

node.removeChild(node.firstChild)是否会创建内存泄漏?

来源:互联网 

MDN says this is one way to remove all children from a node. But since only the first child node is referenced in code, do the others become memory orphans? Is anything known about whether this is the case in any or all browsers? Is there something in the DOM standard that calls for garbage collection when doing this? this is one way to remove all children




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: