How to separate multiple names in vue by commas?

the effect I want:

clipboard.png

:

clipboard.png

:<span v-for="item in list.participant">{{item.name}}</span>

how to achieve it?

Jun.25,2022

p span:after {content: ",";}
p span:last-child:after {content: "";}


<span>{{list.participant.map(i=>i.name).join(',')}}</span>

p span:after {content: ",";}
p span:last-child:after {content: "" }
this is easy to operate


deal with it with spilt


:<span v-for="(item, index) in list.participant" :key="index">{{index === list.participant.length - 1 ?item.name : item.name + ','}}</span>


I simply modified
http://jsrun.net/DyXKp/edit

.
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-1b3a7b7-2b994.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-1b3a7b7-2b994.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?