如何跟踪网页的所有 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 事件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!
在 Angular 2/Typescript 中使用 IScrollUse IScroll in Angular 2 / Typescript(在 Angular 2/Typescript 中使用 IScroll)
Anime.js 在 Ionic 3 项目中不起作用anime.js not working in Ionic 3 project(Anime.js 在 Ionic 3 项目中不起作用)
Ionic 3 - 使用异步数据更新 ObservableIonic 3 - Update Observable with Asynchronous Data(Ionic 3 - 使用异步数据更新 Observable)
Angular 2:在本地 .json 文件中找不到文件Angular 2: file not found on local .json file(Angular 2:在本地 .json 文件中找不到文件)
在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指In Ionic 2, how do I create a custom directive that uses Ionic components?(在 Ionic 2 中,如何创建使用 Ionic 组件的自定义指令?)
将 ViewChild 用于动态元素 - Angular 2 &离子2Use ViewChild for dynamic elements - Angular 2 amp; ionic 2(将 ViewChild 用于动态元素 - Angular 2 amp;离子2)