레퍼런스 removeChild()

removeChild()

Removes the first matching child element.

The parameter, name, is the child element to remove. If a string is passed, as in myXML.removeChild('cat'), then the first child element with the tag <cat></cat> will be removed. If a number is passed, as in myXML.removeChild(1), then the child element at that index will be removed.

예제

구문

removeChild(name)

매개변수

name
String|Integer:

name or index of the child element to remove.

Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.XML.js and open a pull request!

관련 레퍼런스