DOM

settings_applicationsEventTarget  >   settings_applicationsNode  >   settings_applicationsElement  >   settings_applications[[Prototype]]

DOM

Editing
  • account_tree
  • bug_report

replaceChildren(string, Nodenode[, ...[, string, NodenodeN]])

기존의 자식 항목을 지정된 자식 항목(노드 또는 문자열) 세트로 대체한다.

구문

형식
element.replaceChildren(node[, nodeN])

매개 변수

string, Nodenode[, ..[, nodeN]]필수

하나 이상의 자식으로 대체할 항목 세트를 지정한다. 노드 또는 문자열을 지정할 수 있다. 문자열의 경우 Text 노드로 삽입된다.

반환

No return value

HierarchyRequestError DOMException 에러가 발생할 수 있다.

Exception

DOMException

DOM API의 메소드를 호출하거나 프로퍼티에 접근한 결과 발생하는 비정상적인 이벤트(예외)를 나타낸다.

지원 웹브라우저