js一行代码获取当月最后一天是多少号

425 阅读1分钟
var lastDay= ((lastDay=new Date).setMonth(lastDay.getMonth()+1) - (+new Date))/1000/60/60/24

想要解释吗?