Jslfl【软件开发技术笔记】

js获取指定月份的天数

如取2017年2月的天数
var day = new Date(2017, 2, 0).getDate();

Comments are currently closed.