DOMSubtreeModified

我们的志愿者还没有将这篇文章翻译为 中文 (简体)加入我们帮助完成翻译!
您也可以阅读此文章的English (US)版。

Example

Following code will display the time of last DOM Change on the title bar of the page.

Be very careful with this event it is easy to cause an infinite loop if you decide to change the DOM inside the event handler.
document.body.addEventListener('DOMSubtreeModified', function () {
  document.title = 'DOM Changed at ' + new Date();
}, false);

文档标签和贡献者