05 2020 档案

摘要:手写一个发布者订阅者模式: // 手写发布订阅模式 EventEmitter class EventEmitter { constructor() { this.events = {}; } // 实现订阅 on(type, callBack) { if (!this.events) this.ev 阅读全文
posted @ 2020-05-29 16:34 仔行天下 阅读(1664) 评论(0) 推荐(0)
摘要:一list组件有时候会无法渲染 解决这个问题可是花了我不少时间呐。这个是快应用已知的一个bug。当list用在第三层的时候就会有这个无法渲染的问题。 <template> <div> <div> <list> ... </list> </div> </div> </template> 解决方案: 改 阅读全文
posted @ 2020-05-20 15:53 仔行天下 阅读(367) 评论(0) 推荐(0)