1 2 3 4 |
const item = document.createElement('h1') item.appendChild(document.createTextNode('ok')) document.getElementById('myId').appendChild(item) |
1 2 3 4 |
const item = document.createElement('h1') item.appendChild(document.createTextNode('ok')) document.getElementById('myId').appendChild(item) |