当前位置:网站首页>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);
},
})

边栏推荐
- The power of code refactoring: how to measure the success of refactoring
- Wechat applet map displays the current position with annotation
- 新产品新人事新服务,英菲尼迪继续深耕中国未来可期!
- Teach you to use elastic search: run the first hello world search command
- WOx WPM installing the Youdao plug-in
- Ti Click: quickly set up tidb online laboratory through browser | ti- team interview can be conducted immediately
- d3dx9_ What if 27.dll is lost? d3dx9_ How to repair 27.dll?
- 软件测试基础-软件测试历史流程,分类,好处,限制
- Offline disk group
- Generate zip package command
猜你喜欢

如何提升IT电子设备效能管理

Use pyinstaller to package py files into exe. Precautions and error typeerror:_ get_ sysconfigdata_ name() missing 1...‘ check_ Solutions to exists'

leetcode 82. Delete duplicate Element II in the sorting linked list

Set up your own website (10)

Ping An technology's practice of migrating from Oracle to ubisql

Teach you how to realize pynq-z2 bar code recognition

Software testing learning - dark horse programmer, software testing learning outline

Community sharing jumpserver in the eyes of senior open source users: a fortress machine for "Crazy" iteration

Advanced learning of MySQL -- Application -- view, stored procedure, trigger

When the publish / subscribe mode encounters NET
随机推荐
Oracle TRUNC function processing date format
DOM object in JS
Sword finger offer 22 The penultimate node in the linked list
[multithreading] thread communication scheduling, waiting set wait(), notify()
428 binary tree (501. mode in binary search tree, 701. insert operation in binary search tree, 450. delete node in binary search tree, 669. prune binary search tree)
Study on heritability and field experiment design
Redis installation
如何提升IT电子设备效能管理
P4251 [scoi2015] small convex play matrix (still a little confused)
Computing trends in three times of machine learning
Autodesk NavisWorks 2022 software installation package download and installation tutorial
写在eclipse里面,与数据库连接查询之后的问题
Asemi rectifier bridge kbp310 function pin diagram
d3dx9_ How to repair 33.dll? d3dx9_ What if 33.dll is lost?
软件测试学习-黑马程序员,软件测试学习大纲
D use in
Seata中 SelectForUpdateExecutor 可以先获取全局锁,再执行 sql吗?
Teach you how to realize pynq-z2 bar code recognition
TP5 generates the most detailed two-dimensional code tp6 (also available)
广汽三菱全新欧蓝德首次国内亮相于年内上市 产品力全面焕新