countdownjs.js

Countdownjs how to show 0 units

回眸只為那壹抹淺笑 提交于 2019-12-13 04:44:56
问题 I am using the JS library CountdownJS. I am wanting to return a zero value for each of the time units when applicable. Currently when the value is 0 the unit just doesn't show. Here's what I want to see: Here's what I currently see: Anyone familiar with the library know where in the source I would look to update this? Ref: http://countdownjs.org/readme.html 回答1: Here's a really simple countdown function I wrote a while back. Feel free to use it however. var t = new Date(2014,11,25,9,30), p =