NgIf b> ... <div class="container"> <div *ngIf="myVar == 'A'">Var is A</div> <div *ngIf="myVar ... 更好的方案是使用 @ViewChild 和模板变量,具体示例如下:.
確定! 回上一頁