-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
当下一个任务的执行时间跨月的时候,如果本月的最大天数大于下月的最大天数,Date.setMonth()会把月份改成下下个月,所以先执行Date.setDate(),再执行Date.setMonth(),可以保证跨月的时候不会跳月
- Loading branch information
Showing
1 changed file
with
3 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters