📜  daysinmonth javascript代码示例

📅  最后修改于: 2022-03-11 15:01:38.946000             🧑  作者: Mango

代码示例1
var dt = new Date();
 var month = dt.getMonth();
 var year = dt.getFullYear();
daysInMonth = new Date(year, month, 0).getDate();