注意闰年2月份的区别
我写了var m=date.getMonth();但是取不到m的值。要怎么取当前时间的月份?
var date=new Date; var month=date.getMonth()+1;