摘要: 在vue中实现一个hook,在mounted添加事件监听,页面销毁时移除。 默认函数有四个参数[target, type, listener, options] target是EventTarget,作为注册监听器的容器,默认是window 后三个参数是addEventListener的参数 exp 阅读全文
posted @ 2022-02-01 20:11 Bob康康 阅读(2243) 评论(0) 推荐(0)