Closed stigmergy-xx closed 6 years ago
switchRender: function (year, month, cal) 增大月份时回传的month是正确的,是标题栏上的月份,减小月份时回传的month多减了1。 比如当前显示的年月是2017年8月,我加月份时回调显示month为9,;当我从8月减为7月时,回调显示month为5。不得已使用cal.currentMonth,它是从0开始的月份,增加减小月份逻辑上都没问题。不知道其他人有没有发现这种情况
https://github.com/AppianZ/calendar/blob/master/How_to_Build_it.md
这是有意为之,请仔细阅读文档
switchRender: function (year, month, cal) 增大月份时回传的month是正确的,是标题栏上的月份,减小月份时回传的month多减了1。 比如当前显示的年月是2017年8月,我加月份时回调显示month为9,;当我从8月减为7月时,回调显示month为5。不得已使用cal.currentMonth,它是从0开始的月份,增加减小月份逻辑上都没问题。不知道其他人有没有发现这种情况