JavaScript中addEventListener的回调函数存放在哪里?
我想知道addEventListener
的回调函数存储在哪里。
在 spec.whatwg 中,他们是这样说的,
“每个 EventTarget 对象都有一个关联的事件侦听器列表(零个或多个事件侦听器的列表)。它最初是空列表。”
这就是全部吗?
那么,我们如何通过 JavaScript 访问该列表呢?
I'm wondering where is the callback function of addEventListener
stored.
In the spec.whatwg, they say like this,
"Each EventTarget object has an associated event listener list (a list of zero or more event listeners). It is initially the empty list."
Is this all?
Then, how can we access that list by JavaScript ?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论