문제

I am using the Jquery Countdown Plugin and would like to only countdown in seconds and add the total time in seconds.

For example, when my countdown is 10 minutes, instead of showing 9 minutes 59 seconds and counting, it would show 599 seconds and counting. Is this possible? Thanks

도움이 되었습니까?

해결책

$('#yourElement').countdown({
    until: someTime,
    format: 'S' // <-- the magic is happening here
});

The relevant documentation is found here (Tab: Formats 2, 4th example)

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top