当前位置:网站首页>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;
// 双击要执行的操作。。。。。。
}
};
})();
边栏推荐
猜你喜欢

How to download pytorch? Where can I download pytorch?

Introduction to mongodb

Cnopendata China Customs Statistics

2022deepbrainchain biweekly report no. 104 (01.16-02.15)

简易版 微信小程序开发之for指令、上传图片及展示效果优化
![[Apple Photo Album push] IMessage group anchor local push](/img/a7/6a27d646ecba0d7c93f8dac38492a2.jpg)
[Apple Photo Album push] IMessage group anchor local push

User value is the last word in the competition of mobile phone market

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

js中#号的作用
![Mongodb replication set [master-slave replication]](/img/2c/8030548455f45fa252062dd90e7b8b.png)
Mongodb replication set [master-slave replication]
随机推荐
[Blue Bridge Road - bug free code] pcf8591 - code analysis of AD conversion
Bisher - based on SSM pet adoption center
Table structure of Navicat export database
2022 tea master (intermediate) examination questions and analysis and tea master (intermediate) practical examination video
第十届中国云计算大会·中国站:展望未来十年科技走向
Applet get user avatar and nickname
2022deepbrainchain biweekly report no. 104 (01.16-02.15)
2022 tea master (primary) examination questions and tea master (primary) examination question bank
FileZilla Client下載安裝
[mathematical logic] propositions and connectives (propositions | propositional symbolization | truth connectives | no | conjunction | disjunction | non truth connectives | implication | equivalence)
【刷题篇】多数元素(超级水王问题)
递归:一维链表和数组
NPM: the 'NPM' item cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Please check the spelling of the name. If the path is included, make sure the path is corr
How to download pytorch? Where can I download pytorch?
redis在服务器linux下的启动的相关命令(安装和配置)
Leetcode: dynamic planning template
CEPH Shangwen network xUP Nange that releases the power of data
TCP, the heavyweight guest in tcp/ip model -- Kuige of Shangwen network
Download and install captura and configure ffmpeg in captura
ffmpeg录制屏幕和截屏