레퍼런스 getContent()

getContent()

Returns the element's content as a String.

The parameter, defaultValue, is optional. If a string is passed, as in myXML.getContent('???'), it will be returned if the element has no content.

예제

구문

getContent([defaultValue])

매개변수

defaultValue
String:

value to return if the element has no content.

Returns

String: element's content as a string.
Notice any errors or typos? Please let us know. Please feel free to edit src/io/p5.XML.js and open a pull request!

관련 레퍼런스