在打字稿中显示 TimeSpan 类型数据

问题描述

试图在表格中显示时间,但它以这种格式显示时间 { "ticks": 690680000000,"days": 0,"hours": 19,"milliseconds": 0,"minutes": 11,"seconds": 8,"totalDays": 0.7993981481481481,"totalHours": 0,"minutes": 11 totalMilliseconds”:69068000,“totalMinutes”:1151.1333333333334,“totalSeconds”:69068 } 虽然我希望它以这种格式显示 “10:15:20” html

    <ng-container matColumnDef="debutJour">
        <th mat-header-cell *matHeaderCellDef mat-sort-header>
          {{'::DebutJour' | abpLocalization}}
        </th>
        <td mat-cell *matCellDef="let element">
          {{ element.debutJour|json }}
        </td>
      </ng-container>
      <ng-container matColumnDef="duree">
        <th mat-header-cell *matHeaderCellDef mat-sort-header>
          {{'::Duree' | abpLocalization}}
        </th>
        <td mat-cell *matCellDef="let element">
          {{ element.duree|json }}
        </td>
      </ng-container>

解决方法

暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!

如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。

小编邮箱:dio#foxmail.com (将#修改为@)