Attaches the element as a child of another element.
myElement.child()
accepts either a string ID, DOM node, or p5.Element. For example, myElement.child(otherElement)
. If no argument is provided, an array of children DOM nodes is returned.
उदाहरण
सिंटैक्स
child()
child([child])
पैरामीटर्स
child
String|p5.Element:
the ID, DOM node, or p5.Element to add to the current element
Returns
Node[]: an array of child nodes.
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!