var arr = [1, 2]; arr.unshift(0); //result of call is 3, the new array length //arr is [0, 1, 2] arr.unshift(-2, -1); // = 5 //arr is [-2, -1, 0, 1, 2] arr.unshift( [-3] ); //arr is [[-3], -2, -1, 0, 1, 2] 语法 arr.unshift(element1, ..., elementN) 参数列表…