获取两个日期之间的间隔(天数,月数等)

var count_day = Math.ceil((Date.parse(endDate)-Date.parse(startDate))/(24*3600*1000));
相关文章
相关标签/搜索