我看到一些关于 jQuery 缺少可变变量(如 php)的帖子,我想知道如何处理这种情况?当我想使用变量“i”来选择一个数组时。
var arr1_1 = ["1","1","1","0","0","0","0","0","0"];
var arr1_2 = ["1","0","0","0","1","0","0","0","1"];
var arr1_3 = ["0","0","0","1","1","1","0","0","0"];
var arr1_4 = ["0","0","0","0","0","0","1","1","1"];
var arr1_5 = ["0","0","1","0","1","0","1","0","0"];
var arr1_6 = ["1","0","0","1","0","0","1","0","0"];
var arr1_7 = ["0","1","0","0","1","0","0","1","0"];
var arr1_8 = ["0","0","1","0","0","1","0","0","1"];
for(var i=0; i <= 9; i++){
console.log(
arr1_"here is the i";
)
}