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

浙公网安备 33010602011771号