(function(window) { var theUA = window.navigator.userAgent.toLowerCase(); if ((theUA.match(/msie\s\d+/) && theUA.match(/msie\s\d+/)[0]) || (theUA.match(/trident\s?\d+/) && theUA.match(/trident\s?\d+/)[0])) { var ieVersion = theUA.match(/msie\s\d+/)[0].match(/\d+/)[0] || theUA.match(/trident\s?\d+/)[0]; console.log('ieVersion', ieVersion) if (ieVersion < 10) { var app = document.getElementById("upgradeMessage") var str = "浏览器版本过低,请升级浏览器"; var str2 = "推荐您使用:谷歌," + "火狐" + "或其他双核浏览器"; app.innerHTML = "
" 
              + "

" + str + "

" + str2 + "

如果你使用的是双核浏览器,请切换到极速模式访问

" document.getElementById("app").innerHTML = "" document.getElementById("app").removeAttribute("id") }; } })(window);