jQuery / underscore.js templating - Compatible with IE 6+?

余生长醉 提交于 2019-12-07 14:44:10

问题


So, I just learned about these recently and am about to put them into a site. Now, the question I am posing is, does this at all throw any kid of errors in IE 6+? Yes, I know IE6, what can you do.. When I say errors, I mean IE errors / warnings.

Appreciate all the help as usual, thanks in advance.

-Wes


回答1:


Firstly, yes: jQuery does work with IE6 -- it says as much on the jQuery Homepage (hover over the "Cross browser" link and you'll see a popup that says IE6+). (having said that, a lot of third-party jQuery plugins are not IE6 compatible, so be careful about that)

Underscore.js I'm less certain about -- I haven't tried it on IE6, and the Underscore.js website is not explicit about which browsers it supports. However it does include functions designed to replace functionality missing from older browsers, and IE6 is discussed in the issue tickets on github, so I would say give it a go.




回答2:


The Underscore test suite is now here.

Running in on IETester results in all present tests run cleanly in IE 6 through 10, but not on IE 5.5.

I also recorded positive outcome on current Chrome 28, Opera 12 and Firefox 22.




回答3:


A good way to check this is to run the test suit on IE6 (or any browser):

  • http://documentcloud.github.io/underscore/test/


来源:https://stackoverflow.com/questions/10657313/jquery-underscore-js-templating-compatible-with-ie-6

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!