function isIE(){ //ie? 判断是不是ie if (window.navigator.userAgent.indexOf("MSIE")>=1) return true; else return false; }