Unshift() and shift() work on the front of the array: var arr = [ 'a', 'b', 'c']; arr.unshift('1'); // insert as first item console.log(arr); // ['1','a', ...
確定! 回上一頁