1.三个数组[1,2,3],[4,5],[6,7]展开为145,147,156,157,246.....
[1,2,3],[4,5],[6,7]
2.数组对象[{name:'a',children:[{name:'a-1'}]},{name:'b',children:[{name:'b-1'}]}] 展开为[{name:'a'},{name:'a-1'},{name:'b'},{name:'b-1'}]
[{name:'a',children:[{name:'a-1'}]},{name:'b',children:[{name:'b-1'}]}]
[{name:'a'},{name:'a-1'},{name:'b'},{name:'b-1'}]
相关分类