getweek() {//获取当天日期是周几
var d = new Date();
var weekday = new Array(7);
weekday[0] = "星期日";
weekday[1] = "星期一";
weekday[2] = "星期二";
weekday[3] = "星期三";
weekday[4] = "星期四";
weekday[5] = "星期五";
weekday[6] = "星期六";
var week = weekday[d.getDay()];
return week;
}
getDateStr(today, addDayCount) {//获取当天日期
var dd;
dd = new Date();
dd.setDate(dd.getDate() + addDayCount);//获取AddDayCount天后的日期
var y = dd.getFullYear();
var m = dd.getMonth() + 1;//获取当前月份的日期
var d = dd.getDate();
if (d < 10) {
d = '0' + d;
};
return y+'-'+m + '-' + d;
},