获取和调试事件监听器

Umar Hansa
Umar Hansa

获取和调试事件监听器

您可以在控制台面板中使用 getEventListeners(node) 检索传入 DOM 节点上的已注册事件监听器。此外,该视频片段还展示了 debug(fn) 在调用 fn 时调用调试程序。