简体   繁体   中英

how to determine which JavaScript events are being triggered

正如标题所说,当我与网页交互时,如何找到触发的JavaScript事件?

when you have firebug installed, the following functions will gather data of all the javascript functions being triggered, and how much time is spent executing them:

console.profile([title])

Turns on the JavaScript profiler. The optional argument title would contain the text to be printed in the header of the profile report.

console.profileEnd()

Turns off the JavaScript profiler and prints its report.

More info can be found at http://getfirebug.com/console.html

Firebug extension of firefox is a great piece of software to let you know about that and many other things. Also here are couple of links to help you:

Debugging JavaScript events with Firebug

http://www.dustindiaz.com/event-capturing-evil/

所有这些帖子都是有用的,当然是萤火虫,我从个人经验中建议这个屏幕演员帮助我,它被称为“jquery中的事件委托”

Use the Stack Tab in Firebug. Put a debugger somewhere , and in the Script tab , at the right hand side , there are three tabs also . Look at the Stack tab to see the details.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM