摘要:
let array1 = [ {'Num': 'A ', 'Name': 't1 '}, {'Num': 'B', 'Name': 't2'}, {'Num': 'C ', 'Name': 't3 ', age: '222'}, {'Num': 'D', 'Name': 't4 ', age: '3 阅读全文
摘要:
flatten(arr) { return [].concat(...arr.map(item => { if (item.children) { let arr = [].concat(item, ...this.flatten(item.children)); delete item.child 阅读全文