angular中如何使用ngFor循环数字

810 阅读1分钟

<ng-container *ngFor="let i of arr(5).fill('1');let n=index">

  • {{i}}