リファレンス getContent()

getContent()

要素の内容をStringとして返します。

パラメータdefaultValueはオプションです。文字列が渡された場合、 例えばmyXML.getContent('???')のように、要素に内容がない場合に それが返されます。

実例

シンタックス

getContent([defaultValue])

パラメーター

defaultValue
String:

要素に内容がない場合に返す値。

リターン

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!

関連するリファレンス