How to convert a string obtained by v-for to an array by vue v-for




one character per span package

how to display FDY in a span and semi-light in a span.

Mar.10,2021

<span v-for="(item,index) in item.name.split(',')" :key="index">{{item}}</span>

there are many code implementations, and ideas are the main thing to figure out what the v-for loop type is. Item.name is obviously a string, so you have to find a way to convert it to an "array" and then loop

.
Menu