摘要:
1 interface Document : Node 2 { 3 //文档类型 4 readonly attribute DocumentType doctype; 5 //DOM实现对象 6 readonly attribute DOMImplementation implentation; 7 //文档根结点 8 readonly attribute Element documentElement; 9 //创建一个新元素10 Element createElement(in DOMString tagName) raises(DOMException);11 //创建文档片段12 D. 阅读全文
摘要:
查看代码 1 interface HTMLCollection 2 { 3 //包含结点的个数 4 readonly attribute unsigned long length; 5 //根据指定的索引index,返回相应的结点 6 //HTMLCollection中的结点呈树形结构,索引值index是结点深度优先方式排序的序号 7 Node item (in unsigned long index); 8 //根据结点的name或者id的属性返回相应的结点 9 Node namedItem (in DOMString name);10 } 阅读全文
摘要:
1、属性 length 返回字符串长度 阅读全文