下面主要用javascript代码来判断浏览器类型及设备访问该网页面,支持手机上的所有浏览器,具体代码如下。
";
html[html.length]='是Tablet:'+os.isTablet+"
"; html[html.length]='是Phone:'+os.isPhone+"
"; html[html.length]='是Android:'+os.isAndroid+"
"; html[html.length]='是电脑:'+os.isPc+"
"; html[html.length]='是Opera浏览器:'+os.isOpen+"
"; html[html.length]='是UC浏览器:'+os.isUC+"
"; html[html.length]='是Ipad:'+os.isIpad+"
"; document.getElementById("divid").innerHTML=html.join("");
原文链接:https://www.f2er.com/js/53204.html"; html[html.length]='是Phone:'+os.isPhone+"
"; html[html.length]='是Android:'+os.isAndroid+"
"; html[html.length]='是电脑:'+os.isPc+"
"; html[html.length]='是Opera浏览器:'+os.isOpen+"
"; html[html.length]='是UC浏览器:'+os.isUC+"
"; html[html.length]='是Ipad:'+os.isIpad+"
"; document.getElementById("divid").innerHTML=html.join("");