<!DOCTYPE html>
<html>
<head>
    <title>日期计算</title>
</head>
<body>
<script type="text/javascript"> var months=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]; var nowDate=new Date(); nowDate.setMonth(nowDate.getMonth()+12); document.write("Date 12 months ahead is "+nowDate.getDate()); document.write(" "+months[nowDate.getMonth()]); document.write(" "+nowDate.getFullYear());
</script> </body> </html>

 

相关文章:

  • 2021-12-10
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-13
  • 2021-11-28
  • 2021-12-18
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-10-27
  • 2021-06-13
  • 2021-08-17
  • 2022-12-23
  • 2022-01-31
相关资源
相似解决方案