if(navigator.userAgent.toLowerCase().indexOf(‘se 2.x‘)>-1 ? true : false) { ??????????alert("搜狗")
? }
搜狗浏览器
if(navigator.userAgent.toLowerCase().indexOf("bidu")>-1 ? true : false){ ???????????alert("百度") ???????}
百度浏览器
if (!!window.ActiveXObject || "ActiveXObject" in window){ ???????????alert("ie") ???????}
ie浏览器
暂时就这三个碰见了再加、
js浏览器判断
原文地址:https://www.cnblogs.com/lvwl/p/9037065.html