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]}} 用&&可处理数组内容为空的情况。
 
原文地址:https://www.cnblogs.com/liucong7708/p/8565334.html