我想将一些函数从collectionView绑定到它之外的按钮 让我说我有类似的东西:
someScope(){
MyView = Backbone.Marionette.ItemView.extend({
theFunction: function(){...},
...
});
view = new MyView();
//render and stuff
}
someOtherScope(){
call to theFunction
}
有没有像MyApp.regions.regionOfMyView.trigger那样的方式..? 我是否必须将视图保存为全局变量?