获取 浏览器 是什么浏览器

var userAgent = navigator.userAgent;var isIE = userAgent.indexOf("compatible") > -1 && userAgent.indexOf("MSIE") > -1;console.log(userAgent)
if(isIE){
alert("...")
}

posted @ 2022-10-09 14:11  玖捌  阅读(16)  评论(0)    收藏  举报