纯情石头

文章
4
资源
0
加入时间
4年2月7天

自己如何去写一个事件触发器

**自己如何去写一个事件触发器**<script type="text/javascript"> class EventEmitter { constructor () { // 存储事件 this.events = this.events || new Map() console.log('========1111111111===========',this.events) } // 监听事件 a