我需要一个像 runes['red'][0]['test'] 这样的 3D 数组
我该怎么做?
var runes = {}
runes['red'] = [
'test': ['loh']
]
runes['blue'] = {}
runes['yellow'] = {}
提前致谢。
最佳答案
所以你想要一个包含数组的对象,里面有对象?看起来像这样:
runes["red"] = [
{test: "loh"},
{anotherTest: "anotherLoh"}
]
关于javascript - 3D 数组 JavaScript,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/22117274/