如果我运行下面这样确定的.class名。但我需要做类似下面: $(document).bind('DOMNodeInserted', function(){
// if class .new exists
// do something to the other elements e.g (body, #div, h1, h2, etc) not to .new cl
从http://updates.html5rocks.com/2012/02/Detect-DOM-changes-with-Mutation-Observers我得到了下面的代码: var insertedNodes = [];
var observer = new WebKitMutationObserver(function(mutations) {
alert('run');
mut