function isIe(){ if (!!window.ActiveXObject || "ActiveXObject" in window){ //是 mui. alert("是IE!"); }else{ //不是 mui.alert("不是IE!"); } } isIe();