Instroduction of Backbone.js & Require.js


Backbone is an incredibly small library for the amount of functionality and structure it gives you. It is essentially MVC for the client and allows you to make your code modular. If you read through some of the beginner tutorials the benefits will soon become self evident and due to Backbone.js light nature you can incrementally include it in any current or future projects. - See more at: http://backbonetutorials.com/why-would-you-use-backbone/#sthash.v3H4Ukuj.dpuf


RequireJS is a JavaScript file and module loader. It is optimized for in-browser use, but it can be used in other JavaScript environments, like Rhino andNode. Using a modular script loader like RequireJS will improve the speed and quality of your code.

Use Require.js to load JS libary and also organized the backbone.js. see more at:

http://backbonetutorials.com/organizing-backbone-using-modules/

你可能感兴趣的:(requirejs,backbone)