Can I find events bound on an element with jQuery?

前端 未结 9 2097
南旧
南旧 2020-11-22 07:11

I bind two event handlers on this link:

Show Alert

JavaScript:

$(         


        
9条回答
  •  生来不讨喜
    2020-11-22 08:01

    While this isn't exactly specific to jQuery selectors/objects, in FireFox Quantum 58.x, you can find event handlers on an element using the Dev tools:

    1. Right-click the element
    2. In the context menu, Click 'Inspect Element'
    3. If there is an 'ev' icon next to the element (yellow box), click on 'ev' icon
    4. Displays all events for that element and event handler

提交回复
热议问题