与えられた文字列を使用して要素のIDを設定します。

引数なしでmyElement.id()を呼び出すと、そのIDを文字列として返します。

実例

シンタックス

id(id)
id()

パラメーター

id
String:

要素のID。

This page is generated from the comments in src/core/p5.Element.js . Please feel free to edit it and submit a pull request!

関連するリファレンス