标签:cti gen turn web window use 浏览器 object navigator
//判断浏览器类型
function getweb(){
if((!!window.ActiveXObject || "ActiveXObject" in window){
return "IE";
}
ifnavigator.userAgent.indexOf("Firefox")!=-1){
return "Firefox";
}
if(navigator.userAgent.indexOf("Chrome")!=-1){
return "Chrome";
}
if(navigator.userAgent.indexOf("Safari")!=-1){
return "Safari";
}
}
标签:cti gen turn web window use 浏览器 object navigator
原文地址:https://www.cnblogs.com/wangshengli520/p/10470282.html