学会了 remove replaceChild append() 的用法
经常运用到document.getElementById('')
childnodes范围很大 包括空格
元素 .children[]用的多
还学了
Element.id,Element.tagName,Element.innerHTML,Element.outerHTML(包含标签定义本身)
Element.className
Element.classList:add/remove/contains/toggle/item/toString
Element.clientHeight/clientWidth
返回元素可见部分的高度和宽度:注意包含了 padding 的值
Element.clientLeft/Top
获取元素左边框、顶部边框的宽度
element.querySelector(‘#aa’)选择器选第一个子元素 all选择所有
Element.remove()
将当前节点从 DOM 树上删除
还学了attribute 标签属性
449

被折叠的 条评论
为什么被折叠?



