Created
August 24, 2013 06:15
-
-
Save callblueday/6326396 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
js判断是否为IE的办法 | |
1.+[1,] | |
2.!+"\v1" | |
3.!!(window.attachEvent && navigator.userAgent.indexOf('Opera') === -1) | |
4.!!(!window.addEventListener&& navigator.userAgent.indexOf('Opera') === -1) | |
5.!!(document.all && navigator.userAgent.indexOf('Opera') === -1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment