Skip to content

Instantly share code, notes, and snippets.

@DublinCity
Last active October 18, 2018 07:48
Show Gist options
  • Save DublinCity/e2201ca7804a340de3d2b0d8ecc7fb4b to your computer and use it in GitHub Desktop.
Save DublinCity/e2201ca7804a340de3d2b0d8ecc7fb4b to your computer and use it in GitHub Desktop.
comparison table of HTML-insert-method
구분 arg Type arg갯수 DOMString파싱 script Node삽입 시 실행
appendChild node one O O
append node||DOMString several O X
innerHTML DOMString one O X
textContent string one X X
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment