javascript获取2月份天数

var dayNum = new Date(2012,2,0).getDate();

原文地址:https://www.cnblogs.com/mizzle/p/2659839.html