简体   繁体   中英

Where can I find a reference list of DOM methods(?) such as appendChild()?

I'm looking for a list of things such as appendChild() or createElement() but I assumed they were called event methods but when I search for such a thing, I don't really find what I'm looking for. I've tried searching JS events, event handlers, DOM, DOM events, Dom handlers, Dom methods etc......

What are they called and how do I find a list of them?

DOM APIs are what you need. querySelectorAll , addEventListener , removeChild - these are all different DOM methods.

The MDN document is one of the best places for information on the DOM, and many other aspects of front-end development. Start here

This MDN guide on event handling is also excellent

Mainly, you have the EventTarget interface , that provides the method addEventListener() and let you to attach unlimited events .

Additionally, the Web API DOM provides other interfaces like Document for DOM manipulation (eg element selection like querySelector ).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM