JS 使用Array.sort和Set()去重,letsetArr=([...newSet([...nums.sort((a,b)=>{returna-b})])])console.log(setArr);使用sort()默认方法的话是Unicode ...
確定! 回上一頁