<!DOCTYPE html>
<html lang="en">
<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>Document</title>
</head>
<body>
<div>
<a href="" id="a2">购物车 <span>(0)</span></a>
</div>
<div id="gw" style="display:none;">
<img src="gwc.PNG" alt="">
</div>
</body>
<script>
var a2 =document.getElementById("a2");
var gw=document.getElementById("gw");
var timer=null;
function open2(){
clearTimeout(timer);
gw.style.display="block";
}
function close2(){
timer&
关于鼠标事件触发div的隐藏和出现
最新推荐文章于 2022-02-23 21:20:08 发布
![](https://img-home.csdnimg.cn/images/20240711042549.png)