카테고리 없음

Element.insertAdjacentHTML

magnon 2017. 5. 30. 11:18

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

반응형