标签:des style io ar color os sp for on
js方法如下:
function addDate(ymd,day){
var temp = new Date(ymd);
temp = temp.valueOf();
temp = temp + day * 24 * 60 * 60 * 1000;
temp = new Date(temp);
return temp.format("yyyy-MM-dd");
}
指定固定日期
三个月时间段:
var today = new Date().format("yyyy-MM-dd");
var startDate = addDate(today,-90);
var endDate = addDate(today,-1);
标签:des style io ar color os sp for on
原文地址:http://www.cnblogs.com/msr1019jingzi/p/4113465.html