摘要:
js观察者模式 // config/Event.js class Event { handlers; constructor() { this.handlers={} } on (type, fn) { this.handlers[type] = this.handlers[type] || []; 阅读全文
posted @ 2020-09-25 09:50
happynood
阅读(92)
评论(0)
推荐(0)