V-for outputs the field list.user.name. in the array list Background error report name is not defined

< div vFFOR = "list in item" >
< span VFF bindcharacters list.user.name" >
/ / list.user.name outputs the name "Xiao Hong" in the view. However, the console will report that name does not define
< / div >
/ / those who are familiar with angular2.0 or above should know that ng"s solution is < span / span >
do not know if there is any corresponding solution for Vue?

Feb.26,2021

you post the data. Generally speaking, you must have the corresponding data in vue before you go to v-for
. The solution is
< div v power for = "list in item" >
{list.user.name?list.user.name:''}
< / div >


.

you can only write it yourself.

<span v-bind='list.user && list.user.name || ""'></span>
Menu