The two fastest ways to empty an array in JavaScript are: 1. Redefine the array variable and set it to an empty array. 2. Set the array length to zero.
確定! 回上一頁