Bootstrapping a Backbone application
问题 I have seen a couple of ways on how to do this, but I can never figure out which is the 'correct' way. Jeffrey Way from NetTuts+ and Addy Osmani instantiate a 'main' application view in order to kick off their applications. require(['views/app'], function(AppView) { new AppView(); }); Ryan Bates from Railscasts starts his application by instantiating a router which then handles subsequent requests: window.App = Models: {} Collections: {} Views: {} Routers: {} init: -> new App.Router()