📜  document.append - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:01:26.636000             🧑  作者: Mango

代码示例6
const parent = document.createElement('div');
const child = document.createElement('p');
const appendValue = parent.append(child);
console.log(appendValue) // undefined
const appendChildValue = parent.appendChild(child);
console.log(appendChildValue) //