티스토리 뷰
position
'beforebegin'
Before the element itself.
'afterbegin'
Just inside the element, before its first child.
'beforeend'
Just inside the element, after its last child.
'afterend'
After the element itself.
text
the string to be parsed as HTML or XML and inserted into the tree.
https://developer.mozilla.org/en-US/docs/Web/API/Element/insertAdjacentHTML
반응형
댓글