filter () 方法會建立一個經指定之函式運算後,由原陣列中通過該函式檢驗之元素所構成 ... let longWords = words.filter(word => word.length > 6); // Filtered array ...
確定! 回上一頁