<tr v-repeat="row:listdata.body" rowindex="{{$index}}">
<td rowindex="{{$index}}" v-repeat="item:row" colindex="{{$index}}">{{item}}</td>
</tr>
代码如上,我希望能在td中拿到tr的rowindex该如何获取呢?
谢谢 作者。
$parent.$index 不确定,试试看?
@285858315 是这样的 万分感谢。
Thanks!
请问在vue2中怎么实现??
Most helpful comment
$parent.$index不确定,试试看?