简体   繁体   中英

Javascript handling Memory leak issue by v8 engine

In Javascript, there is a memory leak if we remove event listeners on the parent DOM node, without removing those on child nodes explicitly.

Is that a bug in the V8 engine ?

Is there any specific reason why the V8 does not remove child references automatically ?

removeEventListener仅删除在其上调用它的节点上的事件侦听器

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM