js判断ie浏览器

function isIE() { //ie?  
    if (!!window.ActiveXObject || "ActiveXObject" in window){
        document.getElementById('music').style.display = 'none';
        return true;      
    } 
    else{
        hello_snow();
        return false;
    }        
}

  

原文地址:https://www.cnblogs.com/bestsamcn/p/4988229.html