摘要: 其实就是es6的set,特点就是没有重复数据,也可以⽤数组模拟 class Set{ constructor() { this.items={} } has(value){ return this.items.hasOwnProperty(value) } add(value){ if(!this. 阅读全文
posted @ 2020-05-28 11:03 又回到了起点 阅读(169) 评论(0) 推荐(0) 编辑