angular2 Cannot read property '0' of undefined , Cannot read property xxx of undefined


{{data.seller?.photos&&data.seller?.photos['03']&&data.seller?.photos['03'][0].id}}

?可处理属性为空的情况,
{{records && records[0]}} 用&&可处理数组内容为空的情况。
 
posted @ 2018-03-14 09:59  liucong2016  阅读(955)  评论(0编辑  收藏  举报