1 // 判断ie浏览器 2 function isIe() { 3 if(window.ActiveXObject || "ActiveXObject" in window) 4 return true; 5 else 6 return false; 7 };