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'
},
]在一個數(shù)組內(nèi),如何判斷type和age 相等的項
關(guān)于數(shù)組的小問題
青春有我
2018-07-07 10:19:45