js当前时间
来源:互联网 发布:js转换 编辑:程序博客网 时间:2024/06/08 06:45
// JavaScript Document
//在界面中显示当前时间
<!-----------
var enabled = 0; today = new Date();
var day; var date;
if(today.getDay()==0) day = "星期日"
if(today.getDay()==1) day = "星期一"
if(today.getDay()==2) day = "星期二"
if(today.getDay()==3) day = "星期三"
if(today.getDay()==4) day = "星期四"
if(today.getDay()==5) day = "星期五"
if(today.getDay()==6) day = "星期六"
document.fgColor = " FF0072";
date1 = "<font size=2 color=blue>" + (today.getYear()) + "年" + (today.getMonth() + 1 ) + "月" + today.getDate() + "日 " + "</font>";
date2 = "<font size=2 color=blue>" + day + "</font>";
document.write("<center>" + date1.fontsize(3) + date2.fontsize(3) + "</center>");
//----->
- js 得到当前时间
- JS获取当前时间
- js当前时间
- js获取当前时间
- js 得到当前时间
- js获得当前时间
- js 获取当前时间
- Js获取当前时间
- js显示当前时间
- Js得到当前时间
- js 获取当前时间
- JS取当前时间
- js 当前时间。
- js获取当前时间
- JS 输出当前时间
- js 显示当前时间
- js获取当前时间
- js 显示当前时间
- 关于#include "stdafx.h"
- Symbian源代码还原之五——判断函数
- 流行的AJAX框架对比:jQuery,Mootools,Dojo,Ext JS
- 这样的书 我改怎么起名呢?
- 理解ThreadLocal
- js当前时间
- 创建模式
- visual C++头文件stdafx.h
- IT人 不要一辈子靠技术生存(转贴)
- 网站优化的七大技巧
- vector 使用at 和 []访问元素
- 使用強類型數據集-》未能启用约束。一行或多行中包含违反非空、唯一或外键约束的值
- 互联网虚拟大脑的结构全景图
- MySQL 1366 错误解决办法