单项选择题

获取div下面所有的button,以下写法正确的是()

A.document.querySelectorsAll(’button’)
B.document.getElementsByTagName(’button’)
C.document.getElementByTagName(’button’)
D.document.querySelector(’button’)

<上一题 目录 下一题>
热门 试题

单项选择题
()语句可以为一个demo元素同时添加color及background这两个行内样式

A.demo.style.cssText="color:red;background:blue;"
B.demo.style="color:red;background:blue;"
C.demo.style.text="color:red;background:blue;"
D.以上说法都不正确

单项选择题
以下代码输出结果为() var num = [1,2,3,4,5];console.log(num.slice(2))

A.[1,2,3,4,5]
B.[2,3,4,5]
C.3
D.[3,4,5]

相关试题
  • 在FrontPage 中设置网页背景.如果先设置...
  • 为了让更多的人了解企业的形象和产品,选择...
  • 制作网站前的一个重要环节是()。
  • 在FrontPage 中,对于表格的处理,下列说...
  • 在FrontPage 中改变表格边框的粗细,可以...