0
How do I make Tables as Javascript Arrays
How do I make arrays that have multiple rows and columns. Is it done by creating arrays withing arrays? Or is there another way?
6 ответов
0
You can define it in Json
0
Actually it's better to define an object for this type of data
but you can also use associated array but it's not recommended
0
An object isn't ideal since I was going to use the table to derive values for other objects. For example rows for age, gender,grades etc and columns for names of individuals as an example.
0
var tables = new Array("age", "gender", "grades");
0
@4Corners"wallie" that would only create a single row. I suppose I have to use [[1,2,3],[4,5,6],[7,8,9]]
0
@Calvin, I need it self contained within Javascript