js监听dom元素内容变化

$("#divid").bind('DOMNodeInserted', function(e) {  

    alert('element now contains: ' + $(e.target).html());  

});  

posted on 2017-03-17 15:32  wolf12  阅读(7890)  评论(1)    收藏  举报