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>
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>
本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。