我有这个 javascript 代码,我想这应该是必须更改代码的地方。
if (this.options.showYear) {
str += '<select tabindex="'+this.tabIndex+'" class="' + this.options.yearClass + '">';
if (this.options.yearOrder == 'desc'){
for (var y = this.options.yearStart; y > (this.options.yearStart - this.options.yearRange - 1); y--){
str += this.addOption(y,y,parseInt(this.calendarYear));
}
} else {
for (var y = this.options.yearStart; y < (this.options.yearStart + this.options.yearRange + 1); y++){
str += this.addOption(y,y,parseInt(this.calendarYear));
}
}
日历目前只显示 2013 年及以上,我至少需要 2012 年。请帮帮我!谢谢
dayChars: 1,
monthNames: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],
dayNames: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
daysInMonth: [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31], // Leap year is added later
format: 'yyyy/mm/dd', // How the output looks after selection
yearStart: (new Date().getFullYear()), // Default starting year for dropdown options is 5 years ago
yearRange: 10, // Show a 10 year span
yearOrder: 'asc', // Counting up in years
startDay: 7