我的 JavaScript 代码存在一些问题,需要使用开发人员工具 (Google Chrome) 跟踪 jQuery 事件绑定(bind)。 您知道一些用于此目的的插件或工具吗?
附注Chrome 开发人员工具事件跟踪跟踪 JavaScript 事件。 jQuery 事件比较困难
最佳答案
没有什么区别..只需将事件注销到控制台,甚至可能有一个不错的小功能:
var log = function(e){
console.log(e)
}
$('#element).eventListener(log);
或内联:
$('#element).eventListener(function(e){
console.log(e);
});
如果您想查看事件气泡的目标,请使用 currentTarget - http://api.jquery.com/event.currenttarget/
关于javascript - 使用开发人员工具跟踪 jQuery 事件绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24655462/