dess中一个简单的多路委托的实现
代码如下: 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
用户评论