当前位置:网站首页>Simple anti shake for wechat applet
Simple anti shake for wechat applet
2022-06-27 18:23:00 【When you're lonely, the dog stays with you】
wxml
<button bindtap="test"> test </button>
js
Page({
data: {
logs: []
},
//
TimeID:-1,
test(res){
// Shake proof
clearTimeout(this.TimeID);
this.TimeID = setTimeout(() => {
//4. Ready to send a request to get data
console.log(123);
}, 1000);
},
})

边栏推荐
- Defiato is an innovation that combines user-friendly features of a centralized platform with defi services
- Generate zip package command
- 09 route guard authenticates URL
- Seata server database connection user and service database undo_ What permissions do log users need?
- Oracle concept II
- P4251 [scoi2015] small convex play matrix (still a little confused)
- leetcode 70. climb stairs
- Written in eclipse, problems after querying the database connection
- seata性能可以通过什么方式提高?比如增加数据库的计算节点?
- Community sharing jumpserver in the eyes of senior open source users: a fortress machine for "Crazy" iteration
猜你喜欢

How to improve it electronic equipment performance management

d3dx9_ How to repair 33.dll? d3dx9_ What if 33.dll is lost?
![[multithreading] thread communication scheduling, waiting set wait(), notify()](/img/4b/b9312fafd1ef1bf438f7aec7665276.png)
[multithreading] thread communication scheduling, waiting set wait(), notify()

电子智慧套装教程

Determine the maximum number of specific words in a string

428-二叉树(501.二叉搜索树中的众数、701.二叉搜索树中的插入操作、450.删除二叉搜索树中的节点、669. 修剪二叉搜索树)

Oracle concept II

Optimal binary search tree

TP5 restrict access frequency

Wanzhou gold industry: what knowledge points do you need to master to invest in precious metals?
随机推荐
Explain the distributed computing of Apache skywalking OAP in detail
软件测试基础-软件测试历史流程,分类,好处,限制
Sword finger offer 22 The penultimate node in the linked list
leetcode 19. Delete the penultimate node of the linked list
Advanced learning of MySQL -- Application -- view, stored procedure, trigger
(5) SPI application design and simulation verification 1 - logic sorting
Use lamda expression and stream flow to traverse map and list
leetcode 69. Square root of X
How much room does Migu video have for development without relying on sports events?
Oracle concept 3
Bit.Store:熊市漫漫,稳定Staking产品或成主旋律
Leetcode 704. Binary search
Handling method of occasional error reporting on overseas equipment
Set up your own website (10)
Uploading multiple attachments from canvas apps to SharePoint
Determine the maximum number of specific words in a string
Android kotlin learning
Dark horse programmer - software testing foundation class -02-30-45 tools open browser running code, audio, video, test points, audio and video labels, layout labels. Advanced hyperlink syntax, absolu
Oracle TRUNC function processing date format
How to modify / display GPIO status through ADB shell