摘要: const list={} // 将事件名和事件函数装进事件池里 function $on(name,func) { if(!name || !func) return; if(!Object.keys(list).includes(name)){ list[name]=func; } } // 根 阅读全文
posted @ 2019-12-21 21:37 温润如玉Ayu 阅读(266) 评论(0) 推荐(0) 编辑