多项选择题
以下可以获取<input type="checkbox" class="check-box">元素的有()
A.document.querySelector(’.check-box’)
B.document.querySelector(’input[type=checkbox]’);
C.document.getElementsByClassName(’check-box’)[0]
D.document.getElementByClassName(’check-box’)
点击查看答案
相关考题
-
多项选择题
__proto__属性和prototype属性的区别()
A.prototype是function对象中专有的属性
B.__proto__是普通对象的隐式属性,在new的时候,会指向prototype所指的对象
C.__proto__实际上是某个实体对象的属性,而prototype则是属于构造函数的属性
D.__proto__只能在学习或调试的环境下使用; -
单项选择题
var nodes = document.body.children; 以下哪些选项可以将nodes这个伪数组转为数组?()
A.Array.from(nodes)
B.Array.prototype.slice.call(nodes)
C.Array.prototype.slice.apply(nodes)
D.以上都对 -
多项选择题
以下的方法中可以改变原数组的方法有()
A.splice
B.slice
C.sort
D.some
