Remove the event before remove the element(GC, release from memory)

前端 未结 0 1162
[愿得一人]
[愿得一人] 2021-01-14 00:23

(Vanilla Javascript) If a DOM element has an event attached to it, should I remove the event first before remove the element itself or I don\'t need to??

Does the ele

相关标签:
回答
  • 消灭零回复
提交回复
热议问题