How to trace or debug all available javascript events(如何跟踪或调试所有可用的 JavaScript 事件)
问题描述
如何跟踪网页的所有 Javascript 事件?
How can I trace all Javascript events of a web page?
是否有可能跟踪所有事件,即使没有附加处理程序?
Is there a possibility to trace all events, even such without a handler attached?
是否有任何工具可以做到这一点?
Is there any tool out there, that can do this?
澄清:
例如:
对于文本输入,我可以为 onblur 和 onchange 添加事件处理程序.
For a text input I can add an event handler for onblur and onchange.
如果我(在浏览器中)更改文本字段的值并保留它,则两个事件处理程序都会执行.现在我想知道我错过了"哪些其他活动?(如果附加了事件处理程序就会被执行的那些).
If I (in the browser) change the value of the textfield and leave it, both eventhandlers are executed. Now I would like to know which other events I "have missed" (the ones which would have been executed if there was an eventhandler attached).
澄清2:
我可以获得一个列表(在给定元素上)我可以附加事件处理程序的所有可能事件吗?
Can I get a list(on a given element) of all possible events I can attach an eventhandler?
推荐答案
这里是 Javascript 事件列表:https://developer.mozilla.org/en-US/docs/Web/活动
Here is a list of Javascript events: https://developer.mozilla.org/en-US/docs/Web/Events
这篇关于如何跟踪或调试所有可用的 JavaScript 事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!
本文标题为:如何跟踪或调试所有可用的 JavaScript 事件
基础教程推荐
- Node.js 有没有好的索引/搜索引擎? 2022-01-01
- jQuery File Upload - 如何识别所有文件何时上传 2022-01-01
- 什么是不使用 jQuery 的经验技术原因? 2022-01-01
- 每次设置弹出窗口的焦点 2022-01-01
- WatchKit 支持 html 吗?有没有像 UIWebview 这样的控制器? 2022-01-01
- 如何使用 CSS 显示和隐藏 div? 2022-01-01
- 如何使用sencha Touch2在单页中显示列表和其他标签 2022-01-01
- 为什么我在 Vue.js 中得到 ERR_CONNECTION_TIMED_OUT? 2022-01-01
- Javascript 在多个元素上单击事件侦听器并获取目标 2022-01-01
- 如何在特定日期之前获取消息? 2022-01-01
