![](https://img-blog.csdnimg.cn/20201014180756930.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
JS
武六七
这个作者很懒,什么都没留下…
展开
-
js获取两个时间差
//计算时间差 function DateDifference(faultDate,completeTime){ // let d1 = new Date(faultDate); // let d2 = new Date(completeTime); var stime =new Date(faultDate).getTime(); var etime = new Date(c...原创 2019-11-07 16:23:10 · 198 阅读 · 0 评论 -
js获取时间并格式化
//日期格式转换方法 Date.prototype.Format = function (fmt) { // author: meizz var o = { "M+": this.getMonth() + 1, // 月份 "d+": this.getDate(), // 日 "h+": this.getHours(), // 小时 "m+": this.getMi...原创 2019-11-07 16:21:51 · 109 阅读 · 0 评论