作者:卖火柴的萌小猪_966 | 来源:互联网 | 2023-05-17 10:44
I bind two event handlers on this link:
我在这个链接上绑定了两个事件处理程序:
Show Alert
Javascript:
Javascript:
$(function()
{
$('#elm').click(_f);
$('#elm').mouseover(_m);
});
function _f(){alert('clicked');}
function _m(){alert('mouse over');}
Is there any way to get a list of all events bound on an element, in this case on element with id="elm"
?
是否有方法获得绑定在元素上的所有事件的列表,在本例中是id="elm"的元素?
8 个解决方案