class()

要素に class属性 を与えられた文字列を使用して追加します。

myElement.class()を引数なしで呼び出すと、現在のクラスを含む文字列を返します。

実例

シンタックス

class(class)
class()

パラメーター

class
String:

追加するクラス。

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

関連するリファレンス