How can I get all names from this object?
var familyTree = {name: 'Alex',
children:[
{name: 'Ricky',
children:'[...]'}
{name: 'John',
children:[{name: 'Tom',
children: '[...]'}]}]};
That it would execute Alex Ricky John Tom.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…