gpt4 book ai didi

javascript - EventListener 存储在哪里?

转载 作者:行者123 更新时间:2023-11-30 11:27:53 26 4
gpt4 key购买 nike

大家好。有人知道我们使用 addEventListener 方法时事件存储在哪里吗???示例:

window.addEventListener('mousedown', this.myvar.onClick );

没关系,但我试图找到它的存储位置???我试着签到

windows.event
windows.Event()
console.dir(window.addEventListener)
window._debugWindow
window.dispatchEvent()
// ... many other try

我找不到检查当前数据监听器存储位置的方法。 enter image description here

我需要一份 list ||注册调试感谢帮助

已解决的编辑: enter image description here

最佳答案

在 Chrome 的 devtools 中,您可以使用 getEventListeners(node) 查看绑定(bind)在对象上的内容。

关于javascript - EventListener 存储在哪里?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47313449/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com