JS 两个字符串时间的天数差计算
人气:0
JS 两个字符串时间的天数差
var s = ((new Date(paramObj.end_date.replace(/-/g,"\/"))) - (new Date(paramObj.start_date.replace(/-/g,"\/"))));
var day = s/1000/60/60/24
复制代码 代码如下:
var s = ((new Date(paramObj.end_date.replace(/-/g,"\/"))) - (new Date(paramObj.start_date.replace(/-/g,"\/"))));
var day = s/1000/60/60/24
加载全部内容