在找内存泄露的过程中,找到了2个小软件 Drip-0.5 和 IEJSLeaksDetector 专门对IE内存泄露检测的2个工具。
function DoThis()
{
var el = document.createElement("div");
...
function DoThis()
{
alert("clicked");
}
}
闭包造成不能确定 el 是否需要被 DoThis 访问到,导致不能释放el引用。
在找内存泄露的过程中,找到了2个小软件 Drip-0.5 和 IEJSLeaksDetector 专门对IE内存泄露检测的2个工具。
function DoThis()
{
var el = document.createElement("div");
...
function DoThis()
{
alert("clicked");
}
}
闭包造成不能确定 el 是否需要被 DoThis 访问到,导致不能释放el引用。