To find a tool that can view HTML element binding events, or the Debug method.
Work often need to test some page JS code, now jquery and other JS framework applications, are dynamically bound events, and no longer is some onclick= "" and so on, for this dynamic binding event, often headache can not find the element exactly what the event is bound.
Is there any way to solve this problem? If you have a browser plugin is also good.
------Solution--------------------
I only know firebug, but there seems to be no way to view kidnapped.
------Solution--------------------
Only know Firebug, others don't know.
------Solution--------------------
Let the dog get it:
Http://www.sprymedia.co.uk/article/Visual+Event
http://www.softwareishard.com/blog/firebug/eventbug-alpha-released/
Chrome's own developer tools can also
But.....
It's not perfect.
------Solution--------------------
Firebug, it can see any HTML,JS event you want.
------Solution--------------------
References:
references:
Firebug, it can see any HTML,JS event you want.
Firebug can't see the dynamic binding event Ah, is it my useless proficiency?
Firebug itself is not, the above I affixed to the Firebug plug-in, installed will have a new tab:event
------Solution--------------------
References:
references:
Let the dog get it:
Http://www.sprymedia.co.uk/article/Visual+Event
http://www.softwareishard.com/blog/firebug/eventbug-alpha-released/
Chrome's own developer tools can also
But.....
It's not perfect.
...
Visual+event that is drag the button to your favorites, then press it on the page you need
------Solution--------------------
Also, if your page is jquery-based, jquery also has a plugin to display, on its website to find
------Solution--------------------
Firedebug, give it a try.
Debug.log (Domobj);