js 获取月份有多少天 2016-04-27 123456var date = new Date();var getFullYear = date.getFullYear();var getMonth = date.getMonth() + 1;var d = new Date(getFullYear, getMonth, 0);var num = d.getDate();