摘要: 发布订阅模式 我把发布订阅的实现类单独提出来,这样代码看起来简洁 /* * 发布订阅 **/ class Pubsub { static instance = null; // 单例 static getInstance() { if (Pubsub.instance == null) { Pubs 阅读全文
posted @ 2021-09-03 10:52 丁少华 阅读(128) 评论(0) 推荐(0)