Javascript onmouseout 睡眠?
在Javascript中,我希望我的onmouseout事件在生效之前休眠/暂停/等待/(不确定这里的正确术语)三秒钟。 这是如何实现的?
谢谢
In Javascript, I want my onmouseout event to sleep/pause/wait/ (not sure of the proper terminology here) for three seconds before taking effect. How is that accomplished?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
上面代码的作用是在调用
onmouseout
3 秒后执行doSomething
函数What the above code does is execute the
doSomething
function after 3 seconds of theonmouseout
being invoked