摘要:
节点操作 案例: 选择水果 节点属性 nodeType 节点的类型 1 元素节点 2 属性节点 3 文本节点 nodeName 节点的名称(标签名称) nodeValue 节点值 元素节点的nodeValue始终是null nodeType 节点的类型 1 元素节点 2 属性节点 3 文本节点 1 阅读全文
摘要:
document.write() innerHTML document.createElement() 性能问题 innerHTML方法由于会对字符串进行解析,需要避免在循环内多次使用。 可以借助字符串或数组的方式进行替换,再设置给innerHTML 优化后与document.createEleme 阅读全文