새로운 p5.Element 객체를 생성합니다.
"첫 번째 매개변수 tag는 'h5'와 같이 HTML 태그 문자열입니다.
두 번째 매개변수 content는 선택적(optional) 매개변수입니다. 새 요소 내부에 삽입될 HTML을 설정하는 문자열입니다. 기본적으로 새 요소는 아무런 내용을 갖지 않습니다.
예제
구문
createElement(tag, [content])
매개변수
tag
String:
새로 생성할 요소의 태그
content
String:
요소 내부에 삽입할 HTML 내용
Returns
p5.Element: 새로 생성된 p5.Element 객체
This page is generated from the comments in src/dom/dom.js . Please feel free to edit it and submit a pull request!