-
Notifications
You must be signed in to change notification settings - Fork 26.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Another way to write the calendar (关于日历的另一种写法) #469
Comments
The issue seems to about this example: learning-area/javascript/building-blocks/calendar-finished.html Lines 51 to 80 in c754e63
|
I agree that it would be a better separation of concerns to determine the number of days in the |
May I work on this? I am really interested in this issue |
@Vidit151003 I think you can go ahead and open a pull request to fix this, it doesn't look like anyone else is working on it at the moment :) Thanks a lot! |
按照月份1、3、5、10、12为31天,2月不闰月28天,其余时间30天。这样借助三元运算符就不用在
createCalendar
中传入days
。那么这种写法和历程中给出的传days的写法有什么区别呢? 即使考虑闰月,对于两种写法都是加入判断语句,似乎与不闰月没有不同。
The text was updated successfully, but these errors were encountered: