indexOf(item) 出现的位置和index 不一致时,表示item前面已经有一个相同的item了,所以要filter(过滤)掉 result = arr.filter((item ,index)=>{ ...
確定! 回上一頁