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 相等的項
關于數組的小問題
慕田峪4524236
2018-07-22 08:06:38