定义JavaScript数组的正确方法是
(A)var txt = new Array("tim","kim","jim")
(B)var txt = new Array(1:"tim",2:"kim",3:"jim")
(C)var txt = new Array="tim","kim","jim"
(D)var txt = new Array:1=("tim")2=("kim")3=("jim")
参考答案
继续答题:下一题
(A)var txt = new Array("tim","kim","jim")
(B)var txt = new Array(1:"tim",2:"kim",3:"jim")
(C)var txt = new Array="tim","kim","jim"
(D)var txt = new Array:1=("tim")2=("kim")3=("jim")