[]EventDispatcher.hasListener问题
var e:EventDispatcher = new EventDispatcher();
e.on("test", this, this.test1);
e.on("test", this, this.test2);
e.off("test", this, this.test1);
e.off("test", this, this.test2);
console.log(e.hasListener("test"));
----------------------------------------
输出:true
e.on("test", this, this.test1);
e.on("test", this, this.test2);
e.off("test", this, this.test1);
e.off("test", this, this.test2);
console.log(e.hasListener("test"));
----------------------------------------
输出:true
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
Laya_XS
赞同来自: