关于前段数据显示问题

我后端给前端的是一个List<实例对象>然后我alert(list[0].id)能够显示,但是我let a=listr[0].id显示Cannot read property 'id' of undefined

还是建议贴下 详细代码 上次只写那两行代码看的是没问题的