2
我想在定義的時間範圍內收集一堆事件。我想使用Ext.util.DelayedTask像以所有參數延遲呼叫事件
var task = new Ext.util.DelayedTask(function(a,b) { console.log(a,b) }, this),
handler = function(a,b) { task.delay(500); };
ref.on({
eventA: handler,
eventB: handler,
scope: this
});
但這似乎不工作,因爲參數是未定義的。