首页 > Web开发 > 详细

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

时间:2017-06-30 21:33:57      阅读:233      评论:0      收藏:0      [点我收藏+]
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下来的

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

原文:http://www.cnblogs.com/hllive/p/7100673.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!