js代码|简单便利的显示当天日期(js显示日期时间)
时间:2021-12-22 17:12:45 阅读:1419
Markup
<script>
/* 日期 */
function tick() {
var hours, minutes, seconds, xfile;
var intHours, intMinutes, intSeconds;
var today, theday;
today = new Date();
theday = [today.getMonth()+1]+"月" +today.getDate() +"号客户反馈鉴赏";
intHours = today.getHours();
intMinutes = today.getMinutes();
intSeconds = today.getSeconds();
timeString = theday;
Clock.innerHTML = timeString;
window.setTimeout("tick();", 100);
}
window.onload = tick;
</script>
<b id="Clock">12月33号客户反馈鉴赏</b>
复制成功!
网友评论