【问题标题】:How to use ngx-countdown-timer for time h:m:s only?如何仅将 ngx-countdown-timer 用于时间 h:m:s?
【发布时间】:2020-05-29 11:13:27
【问题描述】:

我如何只使用ngx-countdown-timer 时间h:m:s

<div *ngFor="let i of dummy">
    <h1 style="margin-left: 17%; color:#df3b3b">
        <countdown-timer [end]="i.times"></countdown-timer>
    </h1>
</div>

【问题讨论】:

    标签: angular6 angular5 angular7 angular8


    【解决方案1】:

    ngx-countdown-timer 的作者没有提供太多文档,所以我浏览了他的源代码。作者似乎也没有输出格式。也许您可以提出Github Repo 本身的问题。

    除此之外,您可能需要编写代码以每秒抓取countdown-timer 的内部HTML,并将字符串转换为您想要的格式。

    【讨论】:

      猜你喜欢
      • 2019-03-01
      • 1970-01-01
      • 2020-05-14
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多