Google Chrome似乎选择显示 < a href=> http://books.google.com/ books? id= 6TAODddEIrgC& pg=PA144&dq=sparse%20ary;dq=sparse%20arvive&sourg=bl&ots=obbbbppIWPuUG&sig=16mc9YQ6QNeatyTFZ9YP704Mf5xSA&hl=en&sa=Xamp;ei=NDFUPrDJOOO8A3S4GODGg&ved=0CC4QA#v=onepage&q=sparse%20ray%20defitave&f=false"nfolfol=" "nofolf" spartraction "re" < a < a > < a > 使用此 un defredeed > n < a it.
var arr = new Array(2);
console.log(arr);
var arr2 = [];
arr2[3] = 123;
console.log(arr2);
var arr3 = [,,,];
console.log(arr3)
var arr4 = [,];
console.log(arr4)
var arr5 = [undefined, undefined]
console.log(arr5)
var arr6 = [undefined]
console.log(arr6)
arr1至arr4是所有稀少的阵列,而rr5和ar6则不是。
[undefined × 2]
[undefined × 3, 123]
[undefined × 3]
[undefined × 1]
[undefined, undefined]
[undefined]
注意细数组的 [未定义 x1]
。
自从您删除了元素后, 以下的元素 : < a href=" "http://books.google.com/ books? id= 6TAODdEIxrgC& lpg=PA144& ots=obbbpIWPuUG&dq=sparse% 20arry% 20definitive& pg=pA146#v=onepage&q=sparse% 20arry% 20definitive& f=false" rel="no folter"。 如果您从一个阵列中删除元素, 数组的数组就会变得稀疏。 a >