html : <p class="t_center Formation_time_nr" id="fnTimeCountDown" date-time="12342312131"><!---date-time="12342312131" 秒级--->
<span class="hour"></span>
<span class="mini"></span>
<span class="sec"></span>
</p>

js:

$(document).ready(function () {
var endtime = $('#fnTimeCountDown').attr('date-time');
initTimer(endtime);
});

var initTimer = function (end) {
var GetRTime = function () {

var EndTime = end * 1000;//date-time传入的时间戳精确到秒,如果传入的是毫秒就去掉*1000就可以了
var NowTime = new Date(); //当前时间戳
var t = EndTime - NowTime.getTime();
var d = 0;
var h = 0;
var m = 0;
var s = 0;
if (t >= 0) {
d = Math.floor(t / 1000 / 60 / 60 / 24); //天
h = Math.floor(t / 1000 / 60 / 60); //时
m = Math.floor(t / 1000 / 60 % 60); //分
s = Math.floor(t / 1000 % 60); //秒
}
if(h<10){h='0'+h;}
if(m<10){m='0'+m;}
if(s<10){s='0'+s;}
$('.hour').text(h + ':');
$('.mini').text(m + ':');
$('.sec').text(s);

/*如果时间到了*/
if (NowTime >= EndTime) {

$('.hour').text('00:');
$('.mini').text('00:');
$('.sec').text('00');
}
};
window.handler = setInterval(GetRTime, 1000);
};