每日练习之javascript循环
<html>
<head>
<script>
window.onload=function(){
var items= [
{name: 'Tony',
age: 54
},
{ name: 'Yuk',
age: 52
},
{name: 'Jamo',
age: 65
}
];
var item=new Array();
for(var key in items){
item.push(items[key]['name']);
}
alert(item);
}
</script>
</head>
<body>
</body>
</html>
以上是 每日练习之javascript循环 的全部内容, 来源链接: utcz.com/z/509454.html