用JS写代码是网页显示时间:现在是17:53:3

[复制链接]
查看11 | 回复3 | 2012-6-18 15:31:01 | 显示全部楼层 |阅读模式
是在网页上显示当前时间嘛??是的话这么写<!--function tick() {var hours, minutes, seconds;var intHours, intMinutes, intSeconds;var today;today = new Date();intHours = today.getHours();intMinutes = today.getMinutes();intSeconds = today.getSeconds();if (intHours == 0) {hours = "00:";} else if...
回复

使用道具 举报

千问 | 2012-6-18 15:31:01 | 显示全部楼层
这太简单了...
回复

使用道具 举报

千问 | 2012-6-18 15:31:01 | 显示全部楼层
什么意思?是要JS输出时间格式为17:53:3随时显示的代码吗?...
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

主题

0

回帖

4882万

积分

论坛元老

Rank: 8Rank: 8

积分
48824836
热门排行