Array elements are numbered, starting with zero. ... So, the simplest way to clear the array is: arr.length = 0; .
確定! 回上一頁