function count() {
var arrs = [];
for(var i = 1;i<=3;i++){
arrs.push(function () {
return i * i;
});
}
return arrs;
}
var result = count();
var fire1 = result[0];
var fire2 = result[1];
var fire3 = result[2];
console.log(fire1());
console.log(fire2());
console.log(fire3());
夜舞暗澜
慕瓜2309318
橋本奈奈未
相关分类