//获得一个月的所有天数
getDaysArray : function(){
var result = [];
let startDate = new Date();
let endDate = new Date();
var weeks = ['日','一','二','三','四','五','六'];
endDate.setDate(startDate.getDate() + 31);
while((endDate.getTime() - startDate.getTime()) >= 0) {
let month = startDate.getMonth() + 1 < 10 ? "0" + (startDate.getMonth() + 1).toString() : (startDate.getMonth() + 1);
let day = startDate.getDate().toString().length === 1 ? "0" + startDate.getDate().toString() : startDate.getDate().toString();
let week = weeks[startDate.getDay()]
result.push([{'month': month},{'days':day},{'week': week}]);
startDate.setDate(startDate.getDate() + 1);
}
return result;
}