레퍼런스 setContent()

setContent()

Sets the element's content.

An element's content is the text between its tags. For example, the element <language>JavaScript</language> has the content JavaScript.

The parameter, content, is a string with the element's new content.

예제

구문

setContent(content)

매개변수

content

new content for the element.

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

관련 레퍼런스