this is my javascript code which for defining multidimensional array
var array = new Array(2);
for (i = 0; i < array.length; i++) {
array[0] = new Array(4);
}
array[0][0] = "name1";
array[0][1] = "property1";
array[0][2] = "value1";
array[0][3] = "0";
//this is where the error happened
array[1][0] = "name2";
array[1][1] = "property2";
array[1][2] = "value2";
array[1][3] = "1";
but the firebug tell me an error: array[1] is not defined
which I mark in the code above
But the array[0][] I could defined,and give them value,
So why the problem happened in this place?Thank you