判断是否是IE浏览器或IE内核浏览器:
function a(){
if(!!window.ActiveXObject||"ActiveXObject" in window){
console.log("is IE");
}
else{
console.log("no");
}
}
判断是否是IE浏览器或IE内核浏览器:
function a(){
if(!!window.ActiveXObject||"ActiveXObject" in window){
console.log("is IE");
}
else{
console.log("no");
}
}