Can I find events bound on an element with jQuery?

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

I bind two event handlers on this link:

Show Alert

JavaScript:

$(         


        
9条回答
  •  深忆病人
    2020-11-22 07:48

    Note that events may be attached to the document itself rather than the element in question. In that case, you'll want to use:

    $._data( $(document)[0], "events" );
    

    And find the event with the correct selector:

    And then look at the handler > [[FunctionLocation]]

提交回复
热议问题