您现在的位置是:首页>观察 > 正文
小米路由器
2021-11-07 20:01:09【观察】
简介 class="ie6 oldie" lang="zh"> <!-- 小米路由器 function isIE(v){ var v = v || "", tester = document.createElement('div'); tester.innerHTML = ''; return !!tes
class="ie6 oldie" lang="zh">
<!--
小米路由器
function isIE(v){
var v = v || "",
tester = document.createElement('div');
tester.innerHTML = '';
return !!tester.getElementsByTagName('i')[0];
}
var isMobile = {
Android: function() {
return navigator.userAgent.match(/Android/i);
},
BlackBerry: function() {
return navigator.userAgent.match(/BlackBerry/i);
},
iOS: function() {
return navigator.userAgent.match(/iPhone|iPad|iPod/i);
},
Opera: function() {
return navigator.userAgent.match(/Opera Mini/i);
},
Windows: function() {
return navigator.userAgent.match(/IEMobile/i);
},
any: function() {
return (isMobile.Android() || isMobile.BlackBerry() || isMobile.iOS() || isMobile.Opera() || isMobile.Windows());
}
};
if ( isIE(6) ) {
window.location.href="/cgi-bin/luci/web/ieblock";
}else{
if(isMobile.Android()){
window.location.href="/cgi-bin/luci/web";
} else {
if (isMobile.any()) {
//mobile not android
window.location.href="/cgi-bin/luci/web";
}else{
//web
window.location.href="/cgi-bin/luci/web";
}
}
}
下一篇:最后一页