|

楼主 |
发表于 2017-10-24 17:10:59
|
显示全部楼层
不报错,具体错误的代码是这段<script>
//判断浏览器, 判断GCF
var browser = {
isIe: function () {
return navigator.appVersion.indexOf("MSIE") != -1;
},
navigator: navigator.appVersion,
getVersion: function() {
var version = 999; // we assume a sane browser
if (navigator.appVersion.indexOf("MSIE") != -1)
// bah, IE again, lets downgrade version number
version = parseFloat(navigator.appVersion.split("MSIE")[1]);
return version;
}
};
function isGCFInstalled(){
try{
var i = new ActiveXObject('ChromeTab.ChromeFrame');
if (i) {
return true;
}
}catch(e){}
return false;
}
//判断浏览器, 判断GCF
var __continueRun = true;
if (browser.isIe() && (browser.getVersion() < 10) && !isGCFInstalled()) {
document.getElementById("applicationHost").style.display = 'none';
document.getElementById("downloadGCF").style.display = 'block';
var downloadLink = "/" + location.pathname.match(/[^\/]+/)[0] + "/v8.msi";
document.getElementById("downloadGCFLink").href = downloadLink;
__continueRun = false;
}
</script> |
|