{{ list[0].name }}

list[0]没有定义

能正确打印出想要的结果,但就是报错,外面套个v-for就没错了 很费解

看到文章说是与异步有关,解决办法:
    <template v-if=list[0]>
        {{ list[0].name }}
    </template>

https://www.v2ex.com/amp/t/402145

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-09-11
  • 2021-11-22
  • 2021-07-09
  • 2021-12-02
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-08-19
  • 2021-10-20
  • 2021-06-17
  • 2022-12-23
相关资源
相似解决方案