我有以下模板: <p [ngClass]="{checked: condition, unchecked: !condition}"> 在执行此操作时,我发现它有点难看,因为我必须重复两次该条件。
確定! 回上一頁