Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DOM变动事件 #9

Open
varHarrie opened this issue Jan 6, 2017 · 1 comment
Open

DOM变动事件 #9

varHarrie opened this issue Jan 6, 2017 · 1 comment
Milestone

Comments

@varHarrie
Copy link
Owner

varHarrie commented Jan 6, 2017

  • DOMSubtreeModified

    • 在DOM结构中发生的任何变化时触发
    • 这个事件在其他任何事件触发后都会触发
    • IE9+/chrome/firefox/safari
  • DOMNodeInserted

    • 在一个节点作为子节点被插入到另一个节点中时触发
    • IE9+/chrome/firefox/safari/opera
  • DOMNodeRemoved

    • 在节点从其父节点中被移除时触发。
    • IE9+/chrome/firefox/safari/opera
  • DOMNodeInsertedIntoDocument

    • 在一个节点被直接插入文档或通过子树间接插入到文档之后触发
    • 这个事件在DOMNodeInserted之后触发
    • /chrome/safari/opera
  • DOMNodeRemovedFromDocument

    • 在一个节点被直接从文档中移除或通过子树间接从文档中移除之前触发
    • 这个事件在DOMNodeRemoved之后触发
    • /chrome/safari/opera
  • DOMAttrModified

    • 在特性被修改之后触发。
    • IE9+/firefox/opera
  • DOMCharacterDataModified

    • 在文本节点的值发生变化时触发
    • IE9+/chrome/firefox/safari/opera

相关查阅“HTML5新特性——MutationObserver”

  • Firefox(14+) Chrome(26+) Opera(15+) IE(11+) Safari(6.1+)
@varHarrie varHarrie added this to the Javascript/Node milestone Jan 6, 2017
@varHarrie varHarrie removed this from the Javascript/Node milestone Mar 1, 2017
@BillyLuo
Copy link

good

@varHarrie varHarrie added this to the Posts milestone Aug 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants