A: document.createElement( )
B: document.appendChild( )
C: 父元素.insertBefore( )
D: document.write( )
举一反三
- 下面的方法中,()不是document对象的方法 A: createElement() B: getElementById() C: write() D: reload()
- 在使用JS时以下哪些不是document对象的方法()。 A: value B: type C: name D: document.write()
- 获取指定Id的元素节点可以使用document对象的________________方法;获取文档根节点可以使用 document对象的________________属性;获取body节点可以使用 document对象的________________属性。
- 要获取文档中指定标签名的HTML页面元素对象,应该使用document对象的()方法。 A: getElementById() B: getElementsByName() C: getElementsByTagName() D: createElement()
- Which of the following components is not part of a sales document?() A: Document header. B: Document feed. C: Document items.
内容
- 0
关于document对象和window对象的说法,正确的是? A: document对象是window对象的父级 B: document对象与window对象是同级 C: document对象是window对象的子对象 D: 用户可以改变 document.location
- 1
在指定节点前插入子节点使用( )方法。 A: createElement() B: appendChild() C: insertBefore() D: insertAfter()
- 2
使用document对象的getElementsByName()方法可以通过元素的____属性获取元素。
- 3
下面( )不是document对象的方法 A: getElementsByTagName() B: getElementById() C: write() D: reload()
- 4
在J2EE中,接受一个XML文档,返回document对象,以分析该XML文档,可以使用如下()方法获得document对象 A: Document doc=DocumentBuilderFactory.parse(“my.xml”); B: Document doc=DocumentBuilder.parse(“my.xml”); C: DocumentBuilderFactory dbf= DocumentBuilderFactory.newInstance(); DocumentBuilderbuilder=dbf.newDocumentBuilder(); Document doc=builder.parse(“my.xml”); D: DocumentBuilder builder=new DocumentBuilder(); Document doc=builder.parse(“my.xml”);