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