So copying an array in JavaScript is simply: var clone = originalArray.slice(0);. That's it. Simple. No need to iterate over the array and copy ...
確定! 回上一頁