js计算两个时间差
时间:2020-06-18 15:28:23
收藏:0
阅读:67
strDate=Date.parse(strDate.replace(‘/-/g‘,‘/‘));
endDate=Date.parse(endDate.replace(‘/-/g‘,‘/‘));
var diffDate=(endDate-strDate)+1*24*60*60*1000;
var days=diffDate/(1*24*60*60*1000);
原文:https://www.cnblogs.com/java-cxh/p/13157711.html
评论(0)