var data = [
{switchProcess:'切换准备',switchStep:[
{
switchStep:'应用检查',executeStep:'1',address:[
{address:'南方基地',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''}
]
},
{
switchStep:'数据复制状态检查',executeStep:'2',address:[
{address:'南方基地',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''}
]
}
]
},
{
switchProcess:'流量接入切换',switchStep:[
{
switchStep:'应用检查',executeStep:'1',address:[
{address:'南方基地',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''}
]
},
{
switchStep:'数据复制状态检查',executeStep:'2',address:[
{address:'南方基地',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''},
{address:'东莞机房',name:'应用状态检查进程1',way:''}
]
}
]
}
];
以上json数据,要怎样用angularjs生成如图中的表格?欢迎大家指教
树形结构循环渲染 每一列的每一个看作一个节点 同一行的后一列同一层为一个节点