Created
April 25, 2013 10:05
-
-
Save binnng/5458764 to your computer and use it in GitHub Desktop.
firefox 18.0.1 不支持window.id方式获取dom元素
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
| <!doctype html> | |
| <html> | |
| <body> | |
| <div id="nav"></div> | |
| </body> | |
| <script type="text/javascript"> | |
| alert(window.nav); | |
| /** | |
| * 经测试 | |
| * firefox 18.0.1 不支持以上方式访问id元素 | |
| */ | |
| </script> | |
| </html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment