参见英文答案 >
Loop through an array in JavaScript38个
我有这样的代码,然后我对如何循环阵列系列感到困惑
打印每个成员.
我有这样的代码,然后我对如何循环阵列系列感到困惑
打印每个成员.
function Person(name,age){ this.name = name; this.age = age; } var family = []; family[0] = new Person("alice",40); family[1] = new Person("bob",42); family[2] = new Person("michelle",8); family[3] = new Person("timmy",6);