單項(xiàng)選擇題獲取div下面所有的button,以下寫法正確的是()

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


您可能感興趣的試卷

你可能感興趣的試題

1.單項(xiàng)選擇題()語句可以為一個(gè)demo元素同時(shí)添加color及background這兩個(gè)行內(nèi)樣式

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

2.單項(xiàng)選擇題

以下代碼輸出結(jié)果為()
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]