es6 set weakset map weakmap
摘要:
//es6提出新的数据类型结构 set map weakset weakmap //set类似数组 其值是不能重复是唯一的。set函数可以接收数组或者其他有iterator接口的数据作为参数 var x=new Set() console.log(typeof x);//object [1,2,1, 阅读全文
posted @ 2021-01-12 11:54 流年* 阅读(63) 评论(0) 推荐(0) 编辑