所以我有一个填充数据的表,这是代码: <tr v-for="user in users" :key="user.id"> <td>{{user.nametd>{{user.role | upFirstLetter}}</td> -- Basically user role has two types (Admin, Customer)
<tr/> 我的
我在显示来自api的json数组时遇到问题。如何在html中显示json数组?我试过了 <div v-for="item in items></div> 我试过item in Food, then item.name 和 item.Food[index].name 但它只显示一个元素,而不是所有元素。