2023-01-19 Vue unshift():從數組中新增(添加)第一個元素並返回新增的元素。 unshift():從數組中新增(添加)第一個元素並返回新增的元素。 const array1 = [1, 2, 3]; const firstElement = array1.unshift(0); console.log(array1); //(4) [0, 1, 2, 3] console.log(firstElement); //4 Newer splice:從數組中刪除或是取代,數量。 Older every():所有元素符合…