js计算两个天数的差值
betweenDays: function(date1, date2) {
var time1 = new Date(date1.replace(/-/g, "/"));
var time2 = new Date(date2.replace(/-/g, "/"));
var times = time2.getTime() - time1.getTime();
var days = parseInt(times / (1000 * 60 * 60 * 24));
return days;
},