【问题标题】:show countdown timer's left time in days,hour,min,secs以天、小时、分钟、秒显示倒数计时器的剩余时间
【发布时间】:2014-05-06 10:20:25
【问题描述】:

这是一个jsFiddle 的倒数计时器插件。我的问题是它仅以分钟和秒显示剩余时间,但我想以天、小时、分钟、秒显示剩余时间,请帮助我。

<h1>Date Countdown jQuery Plugin</h1><br />
<input type="button" value="start" id="start">
<div id="time" class="time"></div>

【问题讨论】:

  • 请将任何相关代码添加到问题中,而不是链接到它。如果链接失效,没有人能理解你的问题(如果未来的读者有类似的问题,他们也想理解)。

标签: jquery


【解决方案1】:

您只犯了一个错误,将 minsOnly 设置为 true....只需替换下面的代码,您也可以看到小提琴演示

$("#time").countdown({
        date: "may 8, 2014 15:45:00",
        onComplete: function( event ) {
        alert("hello");
        },
        minsOnly: false,

        leadingZero: true
    });
});

http://jsfiddle.net/wknF8/7/

【讨论】:

    猜你喜欢
    • 2020-08-22
    • 1970-01-01
    • 2020-09-15
    • 1970-01-01
    • 1970-01-01
    • 2019-11-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多