Метод append
- @JSName('appendChild')
- Node node
@JSName('appendChild')
Добавляет узел в конец списка дочерних узлов этого узла.
Если узел уже существует в этом документе, он будет удалён из своего текущего родительского узла и затем добавлен к этому узлу.
Этот метод более эффективен, чем nodes.add, и является предпочтительным способом добавления дочернего узла.
Реализация
@JSName('appendChild')
/**
* Adds a node to the end of the child [nodes] list of this node.
*
* If the node already exists in this document, it will be removed from its
* current parent node, then added to this node.
*
* This method is more efficient than `nodes.add`, and is the preferred
* way of appending a child node.
*/
Node append(Node node) native;
© 2012 the Dart project authors
Licensed under the BSD 3-Clause "New" or "Revised" License.
https://api.dart.dev/stable/2.18.5/dart-html/Node/append.html