2
我在列表中大約有< 1300
數組。陣列的數量有望在未來JavaScript中的大數組
這是我列出他們成長:
var listofarrays{
listone:['string element', 'another string element'],
listtwo:['string element', 'another string element'],
listhree:['string element', 'another string element'],
listfour:['string element', 'another string element']
// ... and so on ... the lists over contain a lot of arrays.
//I figured it was best to not copy/paste it all.
};
我的問題是:
- 可以有任何的問題上增加更多的陣列?
- 如何使用最小存儲來保存所有這些數組?
爲什麼你不會使用數組的數組?或者你的數組不是真的叫做'listone','listtwo'等等。 – Brad
也許[typed arrays](https://developer.mozilla.org/en-US/docs/JavaScript_typed_arrays) – Bakudan
@Brad不,他們只是爲了展示它作爲一個例子。 '這裏的數組'表示我在這裏喜歡大量的數組。我認爲這比複製一切都好。 – user1431627