这是显示客户端的当前时间,只是显示了缺省格式
<html>
<head>
<script language="javascript">
<!--
function show_time(){
var now = new Date();
document.getElementById("time").value = now;
}
setInterval(show_time,1000);
//-->
</script>
</head>
<body>
<input type="text" value="123" id="time" name="time">
</body>
</html>
<html>
<head>
<script language="javascript">
<!--
function show_time(){
var now = new Date();
document.getElementById("time").value = now;
}
setInterval(show_time,1000);
//-->
</script>
</head>
<body>
<input type="text" value="123" id="time" name="time">
</body>
</html>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货