摘要:
new Set(),用来去重数组。 Set类似于数组,区别在于它所有的成员都是唯一的,不能有重复的值 数值去重: let arr = [1, 2, 2, 3]; // [1, 2, 2, 3] let set = new Set(arr); //去掉重复数据,返回结果是'set'let newArr 阅读全文
摘要:
参考: https://www.taniarascia.com/getting-started-with-react/ 1. React is a JavaScript library, 2. React is NOT a framework , 3. React is an open-source 阅读全文