问题
Just upgraded to the RC of IE9 and found that my web pages using jQuery Templates are not rendering the template content.
Pages work fine when I switch to IE8 Browser Mode in the Developer Tools (and Safari, FF, etc).
Anyone got any ideas?
回答1:
There is now a RC version of jQuery v1.5 - here That should fix your problems with jQuery on IE9 RC. Full version of jQuery 1.5.1 is due to be released very soon.
回答2:
The issue was caused by a bug in jQuery 1.5 when running on an IE9.
The only way to get this working is to wait until the release of jQuery 1.5.1
See: http://bugs.jquery.com/ticket/8052
回答3:
Check your code for usage of .text(), .contents() and replace those with .html().
IE has problems with those functions, only reliable way to grab content seems to be .html(): http://www.bennadel.com/blog/1829-Script-Tags-jQuery-And-Html-Text-And-Contents-.htm
回答4:
This problem has been fixed at latest version of jQuery. Upgrade to 1.5.1
回答5:
It might be fixed but is still an issue via asp.net!
来源:https://stackoverflow.com/questions/5004437/jquery-templates-not-working-in-ie9-rc