JS两个字符串时间的天数差计算_javascript技巧
来源:懂视网
责编:小采
时间:2020-11-27 21:13:13
JS两个字符串时间的天数差计算_javascript技巧
JS两个字符串时间的天数差计算_javascript技巧:JS 两个字符串时间的天数差 代码如下: var s = ((new Date(paramObj.end_date.replace(/-/g,\/))) - (new Date(paramObj.start_date.replace(/-/g,\/)))); var day = s/1000/60/60/24
导读JS两个字符串时间的天数差计算_javascript技巧:JS 两个字符串时间的天数差 代码如下: var s = ((new Date(paramObj.end_date.replace(/-/g,\/))) - (new Date(paramObj.start_date.replace(/-/g,\/)))); var day = s/1000/60/60/24

JS 两个字符串时间的天数差
代码如下:
var s = ((new Date(paramObj.end_date.replace(/-/g,"\/"))) - (new Date(paramObj.start_date.replace(/-/g,"\/"))));
var day = s/1000/60/60/24
JS两个字符串时间的天数差计算_javascript技巧
JS两个字符串时间的天数差计算_javascript技巧:JS 两个字符串时间的天数差 代码如下: var s = ((new Date(paramObj.end_date.replace(/-/g,\/))) - (new Date(paramObj.start_date.replace(/-/g,\/)))); var day = s/1000/60/60/24