您可以将* ngIf structural指令与if-else语法一起使用来实现此结果。 <label *ngIf="j === 0; else elseBlock">{{val}}</label> <ng-template #elseBlock> <label ...
確定! 回上一頁