js: get event handler bound to the element

 

jQuery._data(jQuery(this)[0], "events" ).click[0].handler

 

$._data( $("#myabc")[0], "events" ).click[0].handler

 

$('#myabc').attr('onclick')

 

$(this).attr('onclick')

 

//sencha
e.srcElement

 

 

 

 

 

 

 

posted @ 2014-01-07 11:01  zyip  阅读(291)  评论(0)    收藏  举报