如果今天是2006年5月14日,分析下列JavaScript代码运行后,在网页上显示()。 var now = new Date( ); var year = now.getYear( ); var month = now.getMonth( ); var date = now.getDate( ); document.write(year+" "+month+" "+date);A、2006 05 14B、2006 5 14C、2006 04 14D、2006 4 14

题目

如果今天是2006年5月14日,分析下列JavaScript代码运行后,在网页上显示()。 var now = new Date( ); var year = now.getYear( ); var month = now.getMonth( ); var date = now.getDate( ); document.write(year+" "+month+" "+date);

  • A、2006 05 14
  • B、2006 5 14
  • C、2006 04 14
  • D、2006 4 14
参考答案和解析
正确答案:D
更多“如果今天是2006年5月14日,分析下列JavaScript代码运行后,在网页上显示()。 var now = new Date( ); var year = now.getYear( ); var month = now.getMonth( ); var date = now.getDate( ); document.write(year+" "+month+" "+date);A、2006 05 14B、2006 5 14C、2006 04 14D、2006 4 14”相关问题