*ngIf. 很多时候需要部分显示的情况下,比如当 user.id===1 的时候才显示【管理员】字样,就可能需要使用另一个语法糖 *ngIf 。 <ul> <li *ngFor="let item of users; ...
確定! 回上一頁