zoukankan      html  css  js  c++  java
  • 时间日期类--显示时间

    <HTML>

    <HEAD> <TITLE>时间日期篇--显示日期</TITLE> </HEAD>

    <BODY bgcolor="#fef4d2" background="../images/background3.JPG" > <br> <br> <center> <font color="ffaafa">   <h2><font color="#FF0000"><b>时间日期篇--显示日期</b></font></h2>   </font>   <hr width=300> <br><br>

    <!-- 案例代码开始 -->

    <script language="JavaScript"> var isnMonth = new Array("1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月");

    var isnDay = new Array("星期日","星期一","星期二","星期三","星期四","星期五","星期六","星期日");

    today = new Date () ;

    Year=today.getYear();

    Date=today.getDate();

    if (document.all)

    document.write("今天是: "+Year+"年"+isnMonth[today.getMonth()]+Date+"日"+isnDay[today.getDay()])

    </script>

    <!-- 案例代码结束 -->

    </center></BODY>

    </HTML>

    <>

  • 相关阅读:
    今日头条、Face++开发岗面经
    美团offer面经
    成都百度测试开发一二面面经
    美团四面面经
    久邦数码(3G门户)面试
    58 面试
    好未来提前批
    百度提前批
    新浪面经
    Java Programs
  • 原文地址:https://www.cnblogs.com/lingyi1111/p/4388779.html
Copyright © 2011-2022 走看看