最简洁短小的 JavaScript 判定 IE 浏览器 by lyz
http://www.cnblogs.com/lyz8/archive/2010/03/21/1691123.html
{已存}
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title></title> </head> <body> <script type="text/javascript"> var notIe = -[1,]; if (notIe) { alert('I\'m not IE'); } else { alert('I\'m IE'); } </script> </body> </html>