');
for (var a = 0, b = 0; a < 42; a++) {
if (a % 7 == 0) {
html.push('');
}
if (a < weekDay) {
var currDay = prev_year + '-' + prev_month + '-' + (++prev_first_day);
html.push('| ');
html.push('' + prev_first_day + '');
html.push(' | ');
} else if (a >= weekDay + days) {
var currDay = next_year + '-' + next_month + '-' + next_day;
html.push('');
html.push('' + (next_day++) + '');
html.push(' | ');
} else {
var currDay = this.year + '-' + this.month + '-' + (b + 1);
html.push('');
// 改为正常显示的日期,添加背景色
if (currDay === this.getCurrDay()) {
html.push('' + (++b) + '');
// html.push('今');
// ++b;
} else {
html.push('' + (++b) + '');
}
html.push(' | ');
}
if ((a + 1) % 7 == 0) {
html.push('
');
}
}
html.push('');
html.push('