javascript - 如何查看哪些 javascript 事件绑定(bind)到 HTML 元素?

标签 javascript events binding firebug

我正在尝试查看此页面如何处理左侧菜单的点击事件。 http://sg.jobsdb.com/SG/jobs/accounting/1?JSSRC=HPJC

使用 Firebug,我可以看到点击对象,但无法理解它如何在右侧显示内容。

有什么方法可以在不搜索所有脚本的情况下查看将事件绑定(bind)到元素的源代码?

谢谢。

最佳答案

chrome 调试器有你要找的东西

isAttribute: false
lineNumber: 348
listenerBody: "function (){return typeof jQuery!=="undefined"&&!jQuery.event.triggered?jQuery.event.handle.apply(arguments.callee.elem,arguments):undefined;}"
node: HTMLTableCellElement
sourceName: "http://content.jobsdb.com.sg/Content/v50/Javascript/JobsDB.combined.min.js"
type: "click"
useCapture: false

我以前只关心 Firebug ,但 chrome 调试器在我看来肯定已经 catch 了,而且 new improvements coming down the pipe我认为我不会很快回到 Firebug 。

关于javascript - 如何查看哪些 javascript 事件绑定(bind)到 HTML 元素?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6434374/

相关文章:

java - 关于适配器模式应用于 Java 中 Swing 事件的一些说明

WPF 绑定(bind)默认模式

arrays - 如何初始化@Binding SwiftUi

javascript - 每 5 秒循环执行一个函数,然后在上次执行后重置

javascript - 同一函数内的 setInterval 和 clearInterval

javascript - 替换字符串中的所有字符,但数组中存在的字符除外

javascript - 如何阻止 Ctrl-- 和 Ctrl-+?

VB.NET - 将事件作为参数传递

c# - 为什么 ContextMenu Command 和 CommandParameter 在 DataGrid 中不起作用

javascript - 如何正确使用 <%= link_to %> 的转义 javascript?