$(elem).data("events")[type] //1.2.3以后才能用返回值:一个Object,可以用for in来遍历。或者undefined。参数:elem是一个DOM对象,type是事件类型。举例:判断id为foo的元素上是否绑定了click事件 a