获取 浏览器 是什么浏览器
var userAgent = navigator.userAgent;var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;console.log(userAgent)
if(isIE){
alert("...")
}
本文来自博客园,作者:玖捌,转载请注明原文链接:https://www.cnblogs.com/fyh0912/p/16771956.html
浙公网安备 33010602011771号