Before the jQuery1.8.0 version, we wanted to get an event handler for a DOM binding to do this:
$.data (domobj, ' events '); // or $ (' selector '). Data (' Events ')
jquery1.8. Beginning with version 0, jquery suddenly does not support this use, but instead to a function called ' _data ', that is, 1.8.0 and later versions you can use:
$._data (domobj, ' events ');//Note that this does not work like $ (' selector '). _data (' Events '). /*For example, you can write*/$._data ($ (' #box '). Get (0), ' events ')//Here are all the events bound to get the DOM element with ID box$._data ($ (' #box '). Get (0), ' events ') [' click ']//here is the Click event bound to get the DOM element with ID box /*or written*/$._data ($ (' #box '). Get (0). Events/*or it can be written*/$.cache[$ (' #box '). Get (0) [$.expando]].events
Compatible with each jquery version, so you can get:
var eventsdata = $.data (domobj, ' events ') | | $._data (domobj, ' events '); // This change is also reflected in the source code of Easyui 1.3.1.
jquery--getting a binding event on a DOM element