更新时间:2023-01-29 09:57:58
您需要修改click
事件的prev
和next
计算.检查此小提琴(检查控制台以查看值).
You need to modify prev
and next
calculations on click
events. Check this fiddle (Check the console to see the values).
使用setMonth()
和getMonth()
代替setDate()
和getDate()
.另外,您可能需要调整/设置天"值才能获得准确的结果.
use setMonth()
and getMonth()
instead of setDate()
and getDate()
. Also you may need to adjust/set the Day value to get accurate results.
更新:这是更新的小提琴