admin管理员组文章数量:1202815
We are working with several browser types - on web, mobile, tablet and smart-tv. We are looking into backbone.js for our mvc.
Is there any known cross browser limitations of backbone.js?
We are working with several browser types - on web, mobile, tablet and smart-tv. We are looking into backbone.js for our mvc.
Is there any known cross browser limitations of backbone.js?
Share Improve this question asked Dec 5, 2011 at 17:21 user920041user920041 1- Backbone.js Test Suite: backbonejs.org/test – Xplora Commented Oct 8, 2015 at 20:24
4 Answers
Reset to default 6I think this has less to do with Backbone then it has to do with the HTML and CSS you use. You can see a list of mobile uses of Backbone here: http://backbonejs.org/#examples. jQuery is commonly used together with Backbone and has a great track record of browser compatiblity. Check that out here: http://docs.jquery.com/Browser_Compatibility.
See also the backbone test suite mentioned by lwburk
I'm just starting to learn backbone.js but we had a browser related issue regarding the history.
This:
Backbone.history.start({pushState: true})
Has some trouble with older browsers.
That's all we've run into so far, but the project is still pretty new.
Here's a related link on backbone's github:
https://github.com/documentcloud/backbone/issues/173
c4urself's answer is good, but bringing things up to date with more recent evidence:
According to this comment by braddunbar in their github issues list, they don't have an official support document, but "to my knowledge Backbone supports IE6+, and the latest version of Chrome, Safari, Firefox, and Opera"
They have a test suite here which you can run in whatever browser you want in order to test support.
See also the support information for their dependencies:
- jQuery: http://docs.jquery.com/Browser_Compatibility
- Underscore: Can't find anything official either, but this comment on issue "Cut support for IE6-8 and other older browsers" by library author (of both underscore and backbone) jashkenas says "Underscore should always be a simple, single script that supports all of the environments you're likely to encounter as a JavaScript developer out of the box. Code that is written to work against one version of Underscore should just work, cross-platform."
- JSON-js: can't find anything explicit, but since the point of the library "are for applications that are expected to run in obsolete web browsers" that don't have the JSON object, I'd say that's not going to be an issue.
Backbone is developed to be as cross browser as possible. Even though they are using history api there is a fallback for it.
You can safely develop any modern web app using it.
本文标签: javascriptHow cross browser is backbonejsStack Overflow
版权声明:本文标题:javascript - How cross browser is backbone.js? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1738656421a2105167.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论