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