web之家  

v-for不能在以下标签里使用
<thead>
<tbody>
<tfoot>
<th>
<td>
表格标签只有<tr>里可以,但是只有<tr>或者套前在以上标签里,是不能成功的
在表格标签一般都是嵌套在<table>里使用的

<table>
       <tr v-for="(p,index) in list" :key="p.id">
           <td>{{ p.id}}</td>
       </tr>
</table>
posted on 2020-12-11 14:07  路修远而求索  阅读(1512)  评论(0编辑  收藏  举报