for (var key in flowConfig) {
if (flowConfig.hasOwnProperty(key)) {
var flow = flowConfig[key], //register:{name:'register',flow}
flowItems = flow.flow;
for (var i = 0, length = flowItems.length; i < length; i++) {
var item = flowItems[i];
if (typeof item.path === 'object') {
//do something
} else {
//do something
}
}
}
}
相关分类