indexOf (). indexOf() 用於查找陣列中特定元素的第一個索引。 let array = [1, 2, 3, 2]; let startIndex = array.indexOf(2);
確定! 回上一頁