我在Coffeescript中有这段代码
window.App = new Backbone.Marionette.Application
Models: {}
Collections: {}
Views: {}
Views.Layouts: {}
Routers: {}
我正在尝试获取此javascript代码
window.App = new Backbone.Marionette.Application({
Models: {},
Collections: {},
Views: {},
Views.Layouts: {},
Routers: {}
});
我收到此错误:错误:第5行的解析错误:意外的'{
答案 0 :(得分:2)
我认为这就是你要做的事情:
window.App = new Backbone.Marionette.Application
Models: {}
Collections: {}
Views:
Layouts: {}
Routers: {}