摘要: Es6中关于Set新特性的应用练习 数组的去重 方案一: let arr1 = [1, 1, 3, 4, 6, 7, 4, 9] let s= new Set(arr1) // 这里得到的值并不是最终去重后的数组 let newArray=Array.from(s) 注意:new Set() 的返回 阅读全文
posted @ 2020-08-07 19:53 comyan 阅读(101) 评论(0) 推荐(0)