How to Nested use “Require.js” with “backbone.js”?
问题 I'm doing the application, the use of backbone.js and require.js, I would like to achieve dynamic configuration module navigation by the "backbone.router" function, here is my question? This is my baserouter defined,I want to achieve dynamic load "backbone.view" according to "the viewPath" parameter.How can I do? define(['require', 'underscore', 'backbone'], function(require, _, Backbone) { var BaseRouter = Backbone.Router.extend({ container: "#page", loadView: function(viewPath) { **//Here