On previous versions, you could call it like for other data :
obj.data('events');
In jQuery 1.8, this direct access was removed, so in recent versions you must call it like this :
$._data(obj[0],"events")
//obj.data('events')
已经弃用,要使用$._data(obj[0],"events")
例:
//取出元素div绑定的事件
var events= $._data($("div")[0], "events");
if (events && events["click"]) {
console.info('已经绑定click事件') ;
} ;