0
這是一個Vue表。
<table>
<tr v-for="height in chartHeight" track-by="$index">
<td class="item" v-for="width in chartWidth" track-by="$index">
index of row and column here
</td>
</tr>
</table>
高度$index
被裏面的寬度覆蓋。我怎樣才能訪問$index
?
你能舉一個chartHeight和chartWidth的例子嗎? –