You can use getEventListeners(button)
directly inside chrome devtool, but not inside application code.
You can use monitorEvents(button, 'keydown')
, now every times keydown happens, event will be logged into the console.
Use unmonitorEvents(button, 'keydown')
to stop.
标签:use,button,inspect,keydown,listeners,Debug,Devtools,event From: https://www.cnblogs.com/Answer1215/p/17452892.html