var data = [row,row2];
This is an Array containing two objects. Can i place some thing like this.
var data = [rowData,row2];
Where rowData is an Array containing Objects
. How can i make rowData behave like an Object like rowData[0],rowData[1] etc e开发者_C百科tc... with in the data Array
.
i think you mean:
var data = [rowData,row2];
//access rowdata:
data[0][1]...
or you can use a json object:
var data = {
rowData: rowData,
row2: row2
};
//access rowData:
data.rowData[1]...
Certainly, arrays can contain arrays.
精彩评论