Unhandled Rejection (TypeError): Cannot read property 'id' of undefined reactjs

后端 未结 0 858
醉话见心
醉话见心 2020-11-28 00:43

i want get the id of an object in an array by doing this: var lastpost = json[0].id and i get this error: Unhandled Rejection (TypeError): Cannot read property

相关标签:
回答
  • 消灭零回复
提交回复
热议问题