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
posted @ 2020-06-11 02:37  hh9515  阅读(125)  评论(0)    收藏  举报