摘要: JavaScript学习笔记(十三)下面弄个实例,运用Dom的知识Dom基础—创建表格利用js来动态创建表格有两种格式,appendChild()和insertRow、insertCell()。但第一种有可能在IE上有问题,所以推荐使用第二种。1、insertRow(index):index从0开始这个函数将新行添加到index的那一行前,比如insertRow(0),是将新行添加到第... 阅读全文
posted @ 2010-01-20 15:50 梅子 阅读(845) 评论(3) 推荐(0) 编辑
摘要: JavaScript学习笔记(十二)新的一章的学习----Dom,重点啊DomcreateElement()、createTextNode()、appendChild()、removeChild()、replaceChild()、insertBefore()、createDocumentFragment()//创建新节点function CreatNode() { var oP = documen... 阅读全文
posted @ 2010-01-20 13:24 梅子 阅读(267) 评论(0) 推荐(0) 编辑