方法三: filter. 使用 Array.prototype.filter() 回傳符合條件的元素,得到一個新陣列。 如下例,回傳大於10 的數字。 var numbers = [1, 3, 6, 10, ...
確定! 回上一頁