How to use chrome web inspector to view hover code

前端 未结 6 1650
野趣味
野趣味 2020-12-04 18:28

Using chromes web inspector to view code is very useful. But how do you view for example the hover code for a button? You will have to hover the mouse over the button and th

6条回答
  •  有刺的猬
    2020-12-04 19:19

    I'm not sure that I right understand your question but if you want to see the event handler code you can just inspect the element and look at Event Listeners sidebar pane of Elements Panel. Another way is just press pause button in Scripts Panel and just hover the element. The debugger will stop at the first instruction of the first event handler.

提交回复
热议问题