摘要: 1.事件调度器 class EventEmitter { constructor() { this.events = {}; } on(event, listener) { if (!this.events[event]) { this.events[event] = []; } this.even 阅读全文
posted @ 2024-04-01 09:12 流年sugar 阅读(217) 评论(0) 推荐(0) 编辑