没啥说的,直接贴代码,算是ie hack了。 if (!+[1,]) { alert('is ie'); } 转载于:https://www.cnblogs.com/jasondan/p/3716660.html