说我想要这样的东西:
var i = 0;
for (i upto 100) {
var x+i = "This is another variable altogether";
i++;
}
javascript 解释器会看到:
var x = "This is another variable altogether";
var x1 = "This is another variable altogether";
var x2= "This is another variable altogether";
var x3 = "This is another variable altogether";
var x4 = "This is another variable altogether";
我可以使用变量计数器来增加变量的名称,以便完全拥有不同的变量吗?