DOM Mutation event in JQuery or vanilla Javascript

前端 未结 6 1078
独厮守ぢ
独厮守ぢ 2020-11-27 04:21

Are there any DOM mutation events in JQuery or in vanilla Javascript that fire cross browser?

To clarify, say I have a script on my page which inserts a div into the

6条回答
  •  难免孤独
    2020-11-27 04:40

    JCADE (JQuery Create and Destroy Events) will do this. It uses behaviors for IE and DOM mutation events for other browsers. It does not use timing events and does not wrap JQuery methods like livequery.

    https://github.com/snesin/jcade

    
        $( document ).create( "a", function( event ) {
          alert( event.target );
        });
    
    

提交回复
热议问题