logo
  • 教程列表
  • SO官方文档
  • Angular - ForLoop
    • NgFor - 循环标记
    • ngFor with component
    • Angular 2 for-loop
    • ngFor X 每行的项目数量
    • 表格行中的 ngFor
  1. StackOverflow 文档
  2. Angular 2 教程
  3. Angular - ForLoop
  4. 表格行中的 ngFor

表格行中的 ngFor

Created: November-22, 2018

<table>
    <thead>
        <th>Name</th>
        <th>Index</th>
    </thead>
    <tbody>
        <tr *ngFor="let hero of heroes">
            <td>{{hero.name}}</td>
        </tr>
    </tbody>
</table>
  • ngFor X 每行的项目数量

Copyright © 2018. All right reserved

tastones.com 备案号:鲁ICP备18045372号-1

  • 关于我们
  • 免责声明