js 判断浏览器类型

navigator.userAgent.indexOf("MSIE")>0)

navigator.userAgent.indexOf("Firefox")>0

navigator.userAgent.indexOf("Safari")>0

navigator.userAgent.indexOf("Camino")>0

navigator.userAgent.indexOf("Gecko/")>0


 

原文地址:https://www.cnblogs.com/wubiyu/p/1277306.html