参考 listAttributes()

listAttributes()

Returns an Array with the names of the element's attributes.

Note: Use myXML.getString() or myXML.getNum() to return an attribute's value.

示例

Returns

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

相关参考