有没有办法在javascript中获取所有事件监听器绑定? [英] is there a way to get all event-listener bindings in javascript?

查看:1257
本文介绍了有没有办法在javascript中获取所有事件监听器绑定?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在寻找一种方法,我可以在网站上列出所有使用JS(或其他脚本)制作的所有事件监听器绑定。主要是我想找出双重绑定(为了调试的原因),但是我想还有其他问题。

I am searching for a way where I can list all event-listener bindings that are made with JS (or other sccripts as well) on a website. Mainly I want to find out double bindings (for debug reason), but I guess there are other issues for it as well.

辉煌作为浏览器的插件,您可以在网站上看到哪些元素具有哪些类型的事件侦听器绑定。你知道,一些可视化的事件监听器...

brilliant would be a plugin for the browser, where you can see on the website which elements have which kinds of eventlisteners bound. You know, some visualization of the event-listeners...

感谢链接,脚本和评论; - )

thanks for links, scripts and comments ;-)

推荐答案

视觉事件( http:/ /www.sprymedia.co.uk/article/Visual+Event+2 )是非常有帮助的。转到此页面,然后将Visual Event链接拖到您的书签栏中。当您想要检查页面时,只需点击它,等待一秒钟,每个元素的事件将覆盖在页面上。

Visual Event (http://www.sprymedia.co.uk/article/Visual+Event+2) is very helpful. Go to this page and just drag the "Visual Event" link into your bookmark bar. When you want to check a page, just click it, wait a second, and the events for each element will be overlaid on the page.

这篇关于有没有办法在javascript中获取所有事件监听器绑定?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆