DOM操作,怎么添加、移除、移动、复制、查找节点
// 添加
// document.createElement
// document.body.append
// 删除
// document.body.removeChild
// 移动
// insertBefore
// #if the given node already exists in the document, insertBefore() moves it from its current position to the new position.
// 复制
// document.cloneNode
// 查找
// document.getElementById

浙公网安备 33010602011771号