From da406b20b9ded68929d7f6b8b1084e1150863c91 Mon Sep 17 00:00:00 2001 From: shanyuhai123 <864299347@qq.com> Date: Wed, 2 Jun 2021 20:44:57 +0800 Subject: [PATCH] Update getMonthDays.md --- snippets/getMonthDays.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/snippets/getMonthDays.md b/snippets/getMonthDays.md index f96b81b86fa..fdc3e014859 100644 --- a/snippets/getMonthDays.md +++ b/snippets/getMonthDays.md @@ -5,7 +5,7 @@ tags: date,intermediate Get the number of days in the month according to the specified month. -- Use `new Date(year, monthIndex, day)`, set the parameter day to `0` to get last day of the month. +- Use `new Date(year, monthIndex, day)`, set the parameter day to `0` to get last day of the previous month. - Use `Date.prototype.getDate` to get the day of month. ```js