当前位置:网站首页>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;
// 双击要执行的操作。。。。。。
}
};
})();
边栏推荐
- Shardingsphere dynamic data source
- 2022 tea master (intermediate) examination questions and analysis and tea master (intermediate) practical examination video
- Recursion: depth first search
- 中移物联网OneOS与OneNET入选《2021年物联网示范项目名单》
- @The difference between Autowired, @qualifier, @resource
- 如何迈向IPv6之IPv6过渡技术-尚文网络奎哥
- Error in compiled file: error: unmapped character encoding GBK
- IPv6 foundation construction experiment
- Web session management security issues
- C语言HashTable/HashSet库汇总
猜你喜欢

Wechat applet + Alibaba IOT platform + Hezhou air724ug built with server version system analysis

没有sXid,suid&sgid将进入险境!-尚文网络xUP楠哥

Without sxid, suid & sgid will be in danger- Shangwen network xUP Nange

TCP, the heavyweight guest in tcp/ip model -- Kuige of Shangwen network

FileZilla Client下载安装

pytorch是什么?pytorch是一个软件吗?

递归:快速排序,归并排序和堆排序

2022 tea master (primary) examination questions and tea master (primary) examination question bank

Error in compiled file: error: unmapped character encoding GBK

Hutool动态添加定时任务
随机推荐
User value is the last word in the competition of mobile phone market
记一次 .NET 差旅管理后台 CPU 爆高分析
Table structure of Navicat export database
Applet get user avatar and nickname
pytorch怎么下载?pytorch在哪里下载?
pytorch是什么?pytorch是一个软件吗?
Dynamic programming: Longest palindrome substring and subsequence
2022deepbrainchain biweekly report no. 104 (01.16-02.15)
Recursion: one dimensional linked lists and arrays
The difference between static web pages and dynamic web pages & the difference between Web1.0 and Web2.0 & the difference between get and post
pytorch难学吗?如何学好pytorch?
2022 mobile crane driver examination registration and mobile crane driver operation examination question bank
Recursive use and multi-dimensional array object to one-dimensional array object
FileZilla Client下载安装
[Apple Push] IMessage group sending condition document (push certificate) development tool pushnotification
Web session management security issues
Wechat applet + Alibaba IOT platform + Hezhou air724ug build a serverless IOT system (III) -- wechat applet is directly connected to Alibaba IOT platform aliiot
Role of JS No
js中#号的作用
Hutool动态添加定时任务