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>
MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1e72820-461b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1e72820-461b6.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?