造成内存泄露原因

1、闭包

2、全局变量( 没有声明的变量)

3、计数器没有清除(setInterval)

原文地址:https://www.cnblogs.com/lpp-11-15/p/13265995.html