html如何生成日期
来源:百度知道 编辑:UC知道 时间:2024/09/28 15:50:28
纯html无法生成日期
用javascript脚本语言,光HTML是不可能的。
我写了一个简单的,可以实现:
<script language=javascript>
//获得时间
document.write( new Date );
//刷新页面
window.setTimeout( "location.reload()", 1000 );
</script>
UC知道是一部内容开放、自由的互动网络百科全书
客观、专业、权威的知识性百科全书
来源:百度知道 编辑:UC知道 时间:2024/09/28 15:50:28
纯html无法生成日期
用javascript脚本语言,光HTML是不可能的。
我写了一个简单的,可以实现:
<script language=javascript>
//获得时间
document.write( new Date );
//刷新页面
window.setTimeout( "location.reload()", 1000 );
</script>