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