当前位置:网站首页>js/ts底层实现双击事件
js/ts底层实现双击事件
2022-07-03 03:56:00 【Attacking-Coder】
private dbclick = (() => {
let timer: number | null = null;
// 底下这个函数其实双击立马创建图片上去,否则是等0.3S再展示上去
return (e: MouseEvent) => {
if (timer === null) {
timer = window.setTimeout(() => {
timer = null;
}, 300);
} else {
window.clearTimeout(timer);
timer = null;
// 双击要执行的操作。。。。。。
}
};
})();
边栏推荐
- Wechat applet + Alibaba IOT platform + Hezhou air724ug built with server version system analysis
- SAP UI5 应用开发教程之一百零五 - SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍
- 『期末复习』16/32位微处理器(8086)基本寄存器
- 在 .NET 6 项目中使用 Startup.cs
- [learning notes] seckill - seckill project - (11) project summary
- Error c2694 "void logger:: log (nvinfer1:: ilogger:: severity, const char *)": rewrite the restrictive exception specification of virtual functions than base class virtual member functions
- Write it down once Net travel management background CPU Explosion Analysis
- QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
- 2022 mobile crane driver examination registration and mobile crane driver operation examination question bank
- [embedded module] OLED display module
猜你喜欢
Without sxid, suid & sgid will be in danger- Shangwen network xUP Nange
pytorch难学吗?如何学好pytorch?
Wechat applet + Alibaba IOT platform + Hezhou air724ug build a serverless IOT system (III) -- wechat applet is directly connected to Alibaba IOT platform aliiot
pytorch开源吗?
『期末复习』16/32位微处理器(8086)基本寄存器
Web session management security issues
[MySQL] the difference between left join, right join and join
Arduino application development - LCD display GIF dynamic diagram
CEPH Shangwen network xUP Nange that releases the power of data
毕设-基于SSM宠物领养中心
随机推荐
Intercept string fixed length to array
ffmpeg之 一张/多张图片合成视频
QQ小程序开发之 一些前期准备:预约开发账号、下载安装开发者工具、创建qq小程序
递归:深度优先搜索
第十届中国云计算大会·中国站:展望未来十年科技走向
SAP ui5 application development tutorial 105 - detailed introduction to the linkage effect implementation of SAP ui5 master detail layout mode
Write it down once Net travel management background CPU Explosion Analysis
[mathematical logic] propositional logic (propositional logic reasoning | formal structure of reasoning | inference law | additional law | simplification law | hypothetical reasoning | refusal | disju
105. SAP UI5 Master-Detail 布局模式的联动效果实现明细介绍
[MySQL] the difference between left join, right join and join
[mathematical logic] predicate logic (judge whether the first-order predicate logic formula is true or false | explain | example | predicate logic formula type | forever true | forever false | satisfi
nodejs基础:浅聊url和querystring模块
没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥
Ffmpeg recording screen and screenshot
Applet get user avatar and nickname
How does the pytorch project run?
Dynamic programming: Longest palindrome substring and subsequence
eth入门之DAPP
Hutool dynamically adds scheduled tasks
IPv6 transition technology-6to4 manual tunnel configuration experiment -- Kuige of Shangwen network