我有点困惑.我需要隐藏块,如果结果有几个 case 之一.但它似乎工作不正常...
<div *ngIf="currentStatus !== 'open' || currentStatus !== 'reopen' ">
<p padding text-center class="text-notification">{{message}}</p>
</div>
它只是出现在其他情况下.它既不适用于1个条件,也不适用于2个条件.也试了*ngIf="currentStatus !== ('open' || 'reopen') "
次,但只对1例有效.