摘要: 1.数组-拆分 const arr =[1,2,3,4,5,6,7] const [a,b,...c] = arr console.log(a,b,c) 2.数组-合并 const a = [1,2,3],b = [4,5,6] const c = [...a,...b] console.log(c 阅读全文
posted @ 2021-08-05 18:11 卷叶小树 阅读(182) 评论(0) 推荐(0) 编辑