输入banner图图片脚本导航/分类

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