js 发布订阅模式的实例讲解 废话不多说,直接上代码 发布订阅模式 class EventEmiter{ constructor(){ 维护一个对象 JavaScript 2022-04-09 188 点赞 2 评论 284 浏览