Indi
时间的朋友 blog.storycn.cn

简易的事件监听 🔗 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 const createEvent = () => ({ events: {} as any, on(eventName: string, callback: Function) { this.events[eventName]?.push(callback) || (this.events[…

讨论

还没有评论,来说第一句吧。

时间的朋友 的其他文章