做倒计时时,可能遇到如果显示个位数字的时候,前边补0,例如:08:59:07(时,分,秒) 只需要设置显示数字格式为%02d 转载于:https://my.oschina.net/u/2258005/blog/503922