var a={x:1,y:2,:z:3}
for(item in a){
console.log(item)//xyz
cosnole.log(a[item])//1,2,3
}
var a={x:{name:'bbb',code:'001'},y:{name:'dafd',code:'0003'}}
在 angular枚举类型
<select><option ng-repeat="(key,value) in order" value="{{key}}">{{value.name}}</option></select>