Date.getMonth()下面是参数的详细信息:
<html><head><title>JavaScript getMonth Method</title></head><body><script type="text/javascript">var dt = new Date( "December 25, 1995 23:15:00" );document.write("getMonth() : " + dt.getMonth() ); </script></body></html>这将产生以下结果:
getMonth() : 11