Creates a <button></button> element.
The first parameter, label, is a string that sets the label displayed on the button.
The second parameter, value, is optional. It's a string that sets the button's value. See MDN for more details.
示例
语法
createButton(label, [value])
参数
label
String:
label displayed on the button.
value
String:
value of the button.
返回值
p5.Element: new p5.Element object.
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!