• 2022-07-24
    以下方法使用格式正确的有()。
    A: document.createElement( )
    B: document.appendChild( )
    C: 父元素.insertBefore( )
    D: document.write( )
  • A,C,D

    内容

    • 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”);