定时器之延时触发鼠标悬浮事件
<!DOCTYPE html> <html> <head> <meta charset="UTF-8"> <title>定时器之延时触发鼠标悬浮事件</title> <script src="https://lib.baomitu.com/jquery/3.4.1/jquery.js"></script> </head> <style> body{ background: #BEE7E9; width: 100%; height: 100%; } .hoverDiv{ width: 100px; height: 100px; margin: 50px; background: #ECAD9E; border: 3px solid #F4606C; border-radius: 9px; cursor: pointer; } #dialog_div{ display: none; width: 100px; background-color: #2aa8e4fa; orphans: inherit; z-index: 99; } </style> <script type="text/javascript"> //声明定时器变量 var monitor; //传递divde DOM Event对象de中间变量(如需要动态加载div) var thisevent; /