我的代码:
var Workspace = Backbone.Router.extend({
routes: {
"Chart": "chart_view",
"Dummy": "dummy_view",
"Table": "table_view"
},
chart_view: function() {
this.hide_all_views();
$(".chart").show();
console.log('chart_view')
},
var route = new Workspace
我初始化route.navigate(" Dummy")但是回调dummy_view不是init?怎么修 ?