摘要: let arr = [ { label: '1', children: [1, 2] } ] let a = [{...arr[0]}] a[0].children = [] console.log(arr[0].children)// 结果是[1,2] let arr = [ { label: ' 阅读全文
posted @ 2018-12-29 15:57 Hello,Code 阅读(5075) 评论(0) 推荐(0) 编辑