var array = [
{
age:20,
name:'lufy'
},
{
age:25,
name:'usop'
},
{
age:12,
name:'tao'
},
{
age:34,
name:'robin'
}
];
2 回答
abc木头人
TA贡献3条经验 获得超0个赞
var array = [
{
age:20,
name:'lufy'
},
{
age:25,
name:'usop'
},
{
age:12,
name:'tao'
},
{
age:34,
name:'robin'
}
];
undefined
var arr=[];
for(var i=0;i<array.length;i++){
arr.psuh(array[i].name);
}
arr.sort();
添加回答
举报
0/150
提交
取消