当前日期显示错误
var mydate=new Date();
var weekday=["星期日","星期一","星期二","星期三","星期四","星期五","星期六"];
var mynum=mydate.getDay();
document.write(
mydate.getFullYear()+"年"+
mydate.getMonth()+"月"+
mydate.getDay()+"日"+
weekday[mynum]
);
上述代码运行后显示当前日期是2015/7/1星期一,然而实际日期却是2015/8/24,请问这是为何?