为什么我这样写显示的月份会少一个月
var mydate=new Date();
var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六",];
var mynum=mydate.getDay();
document.write(mydate.getFullYear()+"年"+mydate.getMonth()+"月"+mydategetDate()+"日"+" "+weekday[mydate.getDay()]+"
")
为什么我这样写显示的月份会少一个月,比如明明是六月的,它显示是五月