[JavaScript] 瀏覽器記憶體洩漏偵錯

如何避免JS記憶體洩漏?

https://mp.weixin.qq.com/s?__biz=MzIzOTU0NTQ0MA==&mid=2247504499&idx=1&sn=aa1f18decca199b2a920ceb346467d3e


1. heap snapshot

2. Allocation instrumentation on timeline

3. performance


記憶體洩漏的場景:

1. 全域

2. 閉包(closure)

3. Detached DOM

4 . console



#memory leak, browser, 記憶體洩漏, 瀏覽器


留言