<div *ngFor="let link of links; let i = index;"> <p>{{link.full}}</p> <button [id]='i' (click)="copyToClipboard(copy) ">Copy</button> </div>如何访问打字稿文件中的 [id]="i"
<div *ngFor="let link of links; let i = index;"> <p>{{link.full}}</p> <button [id]='i' (click)="copyToClipboard(copy) ">Copy</button> </div>
明月笑刀无情
倚天杖
相关分类