js监听dom元素内容变化

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

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

});  

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