//多个倒计时
$('.history-time').each(function() {
var _time_box = $(this),
_num = _time_box.data('timeend');
if(_num != '') {
var _end_time = parseInt(_num)*1000;
setTimeout(function() {
var _c_time = _end_time - $.now();
if(_c_time < 0) {
var _n_date = new Date($.now()),
_n_date_day = _n_date.getUTCMonth()+1;
_time_box.html(_n_date.getUTCFullYear()+'/'+_n_date_day+'/'+_n_date.getUTCDate()+' '+_n_date.getUTCHours()+":"+ _n_date.getUTCMinutes()+":" + _n_date.getUTCSeconds());
return true;
}
var _c_date = new Date(_c_time);
_time_box.find('span').html(_c_date.getUTCHours()+"小时"+ _c_date.getUTCMinutes()+"分" + _c_date.getUTCSeconds() + "秒");
setTimeout(arguments.callee, 1000);
}, 0);
}
});