2011-08-12 36 views

回答

1

使用jQuery:

var ele = $("#web"); // Replace with specified element 

ele.click(function(){}); 
ele.mouseover(function(){}); 

$.each(ele.data("events"), function(i, e) {  
    alert(i); 
}); 

工作例如:http://jsfiddle.net/7HEuW/

+0

太好了 - 谢谢。 – Journeyman