dess中一个简单的多路委托的实现

追梦人-斌 10 0 PDF 2020-12-22 13:12:23

代码如下: var SDelegate = function(f, b, c) { if (b) { this.asFunction_ = function() { return f.apply(b, arguments); } } else { this.asFunction_ = function() { return f.apply(this, arguments); } } this.method_ = f; this.binding_ = b; this.continus = c; } SDelegate.composite = function(d) { if (d.continu

用户评论
请输入评论内容
评分:
暂无评论