您的位置:首页 > 其它

比较简洁的页面显示日期、时间

2012-09-17 20:59 295 查看
比较简洁的页面显示日期、时间

<html>

<head>

<title> <meta http-equiv="Content-Type" content="text/html; charset=gb2312">

</head>

<body>

<div id="linkweb"></div>

<script>setInterval("document.getElementById('linkweb')=new Date().toLocaleString()+' 星期'+'日一二三四五六'.charAt(new Date().getDay());",1000);

</script>

</body>

</html>
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: