A.document.querySelectorsAll(’button’) B.document.getElementsByTagName(’button’) C.document.getElementByTagName(’button’) D.document.querySelector(’button’)
A.demo.style.cssText="color:red;background:blue;" B.demo.style="color:red;background:blue;" C.demo.style.text="color:red;background:blue;" D.以上說法都不正確
以下代碼輸出結(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]