【发布时间】:2014-04-09 18:53:46
【问题描述】:
var o = {}
_.extend(o, Backbone.Events)
o.on('custom', function(){ console.log("A nested event was triggered!"); })
o.trigger('custom:nested', otherDataThatINeed);
是否有内置功能,如主干中的嵌套事件所示?以前有没有人实现过这样的功能? (谷歌搜索完全没有返回)
【问题讨论】:
标签: javascript events backbone.js