在nuxt.js中解析二维数组时遇到问题
第一次渲染时还可以,但是当我刷新时,我遇到了问题 像“无法读取未定义的属性'1'”
对于console.log,即使刷新也可以
我尝试了卡片[0]。“ 1”,卡片。“ 1”。但这是错误的。
if (response.results) {
this.cards.push(response.results);
console.log(this.cards[0][4]) // It's on the console.
在模板中
{{cards [0] [1]}}
是错误