1,2,3,5题都很简单,就不多提了。 第四题写了一阵子,一开始通过50%,后来发现问题出现在2月份的天数上,一般是28天,闰年是29天。 判断闰年:(year%4==0&&year%100!=0)||year%1000==0 function Calendar(container, year, month) { console.log(container) this.year = year; this.month = month; this.html = html; this.el = document.createElem...