<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>倒计时</title>
<!-- 刷新 -->
<meta http-equiv="refresh" content="1">
<style>
body {
text-align: center;
margin: 100px auto;
}
</style>
</head>
<body>
<!-- 显示当前时间,并且显示今年倒计时 -->
<div class="div1"></div>
<div class="div2"></div>
<script>
function getTime() {
var arr = ['星期天', '星期一', '星期二', '星期三', '星期四', '星期五', '星期六'];
var time = new Date()
当前时间与新年倒计时
最新推荐文章于 2024-07-19 16:39:13 发布