简体   繁体   中英

Can I use two different versions of backbone.js in the same page?

Can I use two different versions of backbone.js in the same page? How about require.js? Dust.js?marionette? other JS FWs?

Yes you can. Use noConflict to make different namespaces for each version of Backbone.js you load.

http://backbonejs.org/#Utility-noConflict

It depends on the framework.

Backbone? Yes. jQuery? Yes.

Dust.js? No.

What you'll have to do is look at the documentation for each project to find out, but that doesn't necessarily answer the question of why you'd want to do that.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM