摘要:
1、判断一个字符串是不是有效时间格式 2、时间字符串转换为时间戳 3、时间戳转换为指定格式的日期时间 3、时间戳计算时间差 4、转换星期 阅读全文
posted @ 2018-09-28 16:49
fighting_carry
阅读(225)
评论(0)
推荐(0)
摘要:
showTime : function(t){ if(typeof t != 'number')return "00:00:00"; var t = t .toString().charAt() == '-' ? t .toString().slice(1) : t; h = t>=3600 ? Math.floor(t/3600) : 0, m = (t - h * 60) >60 ? Mat... 阅读全文
posted @ 2018-09-28 15:33
fighting_carry
阅读(427)
评论(0)
推荐(0)