摘要: 1. 数组去重 const numbers =[1, 1, 1, 2, 3, 2, 4] let array = Array.from(new Set(numbers)); console.log(array); // Result: [1, 2, 3, 4] 或 let array = [...n 阅读全文