如果我運行下面這樣確定的.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