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]}} 用&&可处理数组内容为空的情况。
{{data.seller?.photos&&data.seller?.photos['03']&&data.seller?.photos['03'][0].id}}
?可处理属性为空的情况,
{{records && records[0]}} 用&&可处理数组内容为空的情况。