I have a weird problem that I am hoping someone can help me with.
I have a web app running jquery and I am trying to run it in IE9. When I try to load the first page, it appears broken and I know that document.ready() and window.load() are not firing. 开发者_运维知识库When I use the developer tools in IE9 and change the document standards to IE8 or IE7 it all works just fine, just not with the document standards set to IE9.
My question is what has changed here that is killing my app? Has anyone had experience with this that might be able to help me?
Thanks!
Make sure you are using latest jquery (1.5.1 at the time of writing). There were compatibility issues with older versions and IE9.
Actually I think this problem might be related to something other than JQuery. I've had exactly the same problem with IE9 and Firefox on Mac (works fine with dev tools, not otherwise). If it's the same problem, it relates to use of console.log(). A suggested fix is to replace:
console.log(message)
with
if (typeof console != "undefined") console.log(message)
精彩评论