小编use*_*679的帖子

使用angularJS获取表中的行索引

我想使用angularJS获取此表中每行的索引

<table>
<tbody>
  <tr ng-repeat = "cust in costomers">
     <td> cust.name </td>
     <td> cust.phone </td>
     <td> cust.address </td>
  </tr>
</tbody>
Run Code Online (Sandbox Code Playgroud)

我想要一个包含每行索引的变量,而不是只显示它

javascript angularjs angularjs-ng-repeat

5
推荐指数
2
解决办法
2万
查看次数