jjzjj

monitorEvents

全部标签

javascript - Firefox 的 monitorEvents() 等价物是什么?

Chromium有一项功能,您可以在其中运行monitorEvents(document)并且您触发的每个事件都将记录在控制台中。如何在Firefox中获得类似的功能?我遇到了这个非常过时的答案,但Firebug甚至不再存在:UsingFirefox,howcanImonitoralleventsthatarefired? 最佳答案 你可以试试这个functionmonitorEvents(element){varlog=function(e){console.log(e);};varevents=[];for(variinelem