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 } } }}
添加回答
举报
0/150
提交
取消