这个问题在这里已有答案:
在图像上您可以看到我想要阅读的内容
console.log("exact val = " + json._array.loftybot.spells.name)
它给出了[TypeError: Cannot read property 'spells' of undefined]
你可以在json的终端结构中看到
如何进入这些价值观?我想将值从json保存到数组const json = new ObservableArray
然后在我的程序中使用所有这些值
json._array[0].loftybot.spells.name
怎么样?你的_array
上的索引为0,并在嵌套的json上更进一步。在MDN看