您的位置:首页 > 其它

浏览器版本低于IE10跳转到指定网页

2017-06-30 21:05 141 查看
var userAgent = navigator.userAgent;
var ie6 = (/msie\s*(\d+)\.\d+/g.exec(userAgent.toLowerCase()) || [0, "0"])[1] == "6",
ie7 = userAgent.indexOf('MSIE 7.0') > -1,
ie8 = userAgent.indexOf('MSIE 8.0') > -1;
ie9 = userAgent.indexOf('MSIE 9.0') > -1;
if (ie6 || ie7 || ie8 || ie9){
window.location.href = 'http://e.jikexueyuan.com/browser.html';
}


极客学院官网copy下来的
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: