新版吐槽
" ].join(""); iframeDoc.open(); iframeDoc.domain = doc.domain; iframeDoc.write(iframeHtm); iframeDoc.close(); }; if (iframe.attachEvent) { var _ifmLoad = function() { iframe.detachEvent("onload", _ifmLoad); iframeLoad(); }; iframe.attachEvent("onload", _ifmLoad); } else { iframe.onload = function() { iframe.onload = null; iframeLoad(); }; } doc.body.appendChild(iframe); } }; function clearLocal(url) { for (var key in win.localStorage) { var urlName = url.substring(0, url.indexOf(".")); var stoName = key.substring(0, key.indexOf(".")); if (urlName == stoName) { localStorage.removeItem(key); break; } } } function loadModule() { var needLoadArr = jsVersions[window.VERSION] || jsVersions.zh; if (needLoadArr.length) { loader.load(needLoadArr, start); } else { start(); } } function start(error) { if (error) { window.errorBeforeStartup = error; } // startup } function getTargetName(name) { var targetName; var jsVersionMap = { en: "jsVersionEn", ko: "jsVersionKo", jp: "jsVersionJp" }; if (VERSION !== "zh") { if ( jsVersionMap[VERSION] && window[jsVersionMap[VERSION]] && window[jsVersionMap[VERSION]][name] ) { targetName = "http://img.qcloud.com/qcloud/app/qcconsole_web/dest/" + window[jsVersionMap[VERSION]][name]; } else { targetName = name; } } else if (debug == 2) { targetName = name; } else { targetName = jsVersion[name]; } return targetName; } var locationHref = win.location.href, debug = 0; if (/\/debug_online/.test(locationHref)) { debug = 1; } else if (/\/debug_https/.test(locationHref)) { debug = 2; } else if (/\/debug_http/.test(locationHref)) { debug = 0; } else if (/\/debug/.test(locationHref)) { debug = 2; } win.startLoadJs = new Date(); loadModule(); })(window, document);