Win10的IE11 Iframe引起的崩溃

这段js代码在win7的IE11是没问题的,在win10的IE11是会崩溃的,先记录下来。目前还没找到问题所在。

function destroyIframeMemory(iframe) {
    if (typeof (iframe) == "undefined")
        return;
    iframe = iframe.contentWindow;
    iframe.src = "about:blank";
    iframe.document.write("");
    if (jQuery.browser.msie)
        CollectGarbage();
}

猜你喜欢

转载自www.cnblogs.com/andy4net/p/9242201.html