摘要: class Event { constructor(){ this.handlers = {}; // 记录所有的事件及处理函数 // { // click: [fn1, fn2], // mouseover: [fn3, fn4], // }; } /** * on 添加事件监听 * @param 阅读全文
posted @ 2020-07-26 13:51 木易锅巴 阅读(186) 评论(0) 推荐(0) 编辑