Function listener in javascript and/or jQuery
问题 Wondering if there is an elegant way to listen for a function in javascript and/or jQuery. Rather than listening for a $('#mything').click(function(){ //blah }) I'd like to listen for when a specific function is fired off. I don't want to edit the function as it's within a library that I don't want to hack directly. I did find this: http://plugins.jquery.com/project/jqConnect which connects functions. But wondering about a better technique. 回答1: The only way to do this is to override the