摘要:
document方法:getElementById(id) 返回指定結點的引用getElementsByTagName(name) 返回文檔中所有匹配的元素的集合createElement(name) 創(chuàng)建指定類型的新結點createTextNode(text) 創(chuàng)建一個純文本結點element方法:getAttribute(id) 返回指定屬性的值setAttribute(id,value) 給屬性賦值removeAttribute(id) 移除指定屬性和它的值getElementsByTagName(name) 返回結點內所有匹配的元素的集合node方法:appendChild(child 閱讀全文
posted @ 2013-03-13 21:23
穆乙
閱讀(826)
評論(0)
推薦(0)

浙公網安備 33010602011771號