How to order events bound with jQuery

后端 未结 12 1067
闹比i
闹比i 2020-11-22 13:09

Lets say I have a web app which has a page that may contain 4 script blocks - the script I write may be found in one of those blocks, but I do not know which one, that is ha

12条回答
  •  遇见更好的自我
    2020-11-22 13:46

    just bind handler normally and then run:

    element.data('events').action.reverse();
    

    so for example:

    $('#mydiv').data('events').click.reverse();
    

提交回复
热议问题