我正在尝试查看此页面如何处理左侧菜单的点击事件。 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/