let a = [1,2,3,4,5,6,7,8]; let b = a.shift(); console.log(a); // [2, 3, 4, ... 深度數字,預設為1,如果深度有很多層,可使用 Infinity 來全部展開成一維陣列。
確定! 回上一頁