获得dom对象遍历dom更新dom添加dom删除domdocument文档树的结构 获得dom对象css常见选择器: getElementById() —-> getElementsByTagName() —-> HTMLCollection(html集合)getElementsByClassName() —-> HTMLCollection 遍历dom 更新dom 添加dom 删除dom