题目内容
(请给出正确答案)
[单选题]
在JavaScript中,数组的____属性能够返回数组元素的个数
A.push
B.size
C.count
D.length
答案
查看答案
A.push
B.size
C.count
D.length
第3题
A.正确
B.错误
第5题
A.var txt=new Array=“George”,“John”,“Thomas”)
B.var txt=new Array:1=(“George”)2=(“John”)3=(“Thomas”)
C.var txt=new Array(1:“George”,2:“John”,3:“Thomas”)
D.var txt=new Array(“George”,“John”,“Thomas”)
第6题
A.var txt = new Array="George","John","Thomas
B.var txt = new Array(1:"George",2:"John",3:"Thomas")
C.var txt = new Array("George","John","Thomas")
D.var txt = new Array:1=("George")2=("John")3=("Thomas")
第8题
A.正确
B.错误