The most common pattern is setting the length of the array to 0. Setting array.length = 0 clears the array. const array = [1, 2, 3, 4, ...
確定! 回上一頁