参考 createP()

createP()

Creates a paragraph element.

elements are commonly used for paragraph-length text.

The parameter html is optional. It accepts a string that sets the inner HTML of the new

.

示例

语法

createP([html])

参数

html
String:

inner HTML for the new <p></p> element.

返回值

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!

相关参考