var getTime = function() { var _ = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09'], //补零 d = new Date(), h = d.getHours(), m = d.getMinutes(), s = d.getSeconds(); setTimeout(function(){ console.log(getTime());}, 1000); return [_[h] || h,…