请各位大哥帮小弟一个小忙
请指教一下这些代码那有问题怎么总是提示"缺少对象" 代码如下:head> <title>年月表单2</title> <script language="JavaScript"> var the_day = new date(); var sj; var ny;
function mytime(){ sj = the_day.getHours()+':'+the_day.getMinutes()+':'the_day.getSeconds(); alert(sj);
} function mydate(){ ny = (the_day.getmonth()+1)+'/'+(the_day.getdate()+1)+'/'+(1900+the_day.getyear());
alert(ny)
} </script> </head> <body> <form> <input type="button" value="时间" Onclick="mytime()"> <input type="button" value="年月" Onclick="mydate()"> </form> </body> </html> 请各位大哥尽快回复一下