<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<title>Document</title>
<style>
span{
display: inline-block;
width: 50px;
height: 50px;
background-color: #000;
color: #fff;
text-align: center;
line-height: 50px;
font-size: 25px;
font-weight: 700;
}
</style>
</head>
<body>
<div>
<span id="hour">00</span> : <span id="minute">00</span> :
<span id="second">15</span>
</div>
<script>
/* 秒杀思路
1.页面一加载,开启间隔 1s 的永久定
WebApi-京东秒杀-倒计时效果
最新推荐文章于 2023-03-18 23:18:12 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)