4

[Dart] DOM Element Remove All Children

 2 years ago
source link: http://siongui.github.io/2014/01/31/dart-element-remove-all-children/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

[Dart] DOM Element Remove All Children

Updated: February 20, 2015

Question:

Assume that elm is a dom element, how to remove all children elements (nodes) of elm in Dart programming language?

Answer:

elm.children.clear();

References:

[1]Removing all child elements from an element

[2]JavaScript Remove All Children of a DOM Element


Author: Siong-Ui Te Category: Dart

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK