I have a strange error only happen i开发者_C百科n Window 7 and IE 8.
I use jQuery in a html. I double click and launch the html in IE. It will show error document.body is null inside the jquery library in the first time. But the error will disappear after i reload the page. The html just loading the jquery js file only and no other js or css.
Didn't happen in other browser.
It looks like the external script is loaded before the document body can be defined.
So you can just place the portion of your script that has $(document).ready
at the end of <body></body>
.
精彩评论