var arr = [
{ type: 1,
age: 12,
name: 'xiaohua'
},
{ type: 1,
age: 12,
name: 'xiaoming'
},
{ type: 1,
age: 12,
name: 'xiaohong'
},
{ type: 2,
age: 14,
name: 'xiaoxiao'
},
]在一個數組內,如何判斷type和age 相等的項
關于數組的小問題
青春有我
2018-07-07 10:19:45