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

边栏推荐
- 2022 Liaoning's latest eight members (Safety Officer) simulated test question bank and answers
- Handwritten promise series - all
- Analysis of shardingsphere core source code
- TP5 restrict access frequency
- Study on heritability and field experiment design
- All you want to know about large screen visualization is here
- leetcode 19. Delete the penultimate node of the linked list
- Overview of Inspur Yunxi database executor
- leetcode 200. Number of islands
- How to create a login interface
猜你喜欢

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

WOx WPM installing the Youdao plug-in

Alibaba cloud server is invaded

Asemi rectifier bridge kbp310 function pin diagram

JS event binding and common events

Synchronization mechanism of dual namenodes

Missing d3d10 How to repair DLL files? Where can I download d3d10.dll

LeetCode 124. Binary tree maximum path sum - binary tree series question 8

Oracle TRUNC function processing date format

Overview of Inspur Yunxi database executor
随机推荐
Wanzhou gold industry: a common technical term in gold t+d transaction?
Popularization of MCU IO port: detailed explanation of push-pull output and open drain output
[Tang Laoshi] C -- encapsulation: member method
Related configuration commands of Huawei LACP
Software testing learning - dark horse programmer, software testing learning outline
Delete duplicate elements in the sorting linked list
JXL export Excel
Leetcode 46 Full Permutation
Oracle概念二
「技术课堂」如何用 VSCode 从 0 到 1 改写 TDengine 代码
2/15 topology sorting +dfs (the order of specified directions is very important) +bfs
[fxcg] today's market analysis
LACP details
Optimal binary search tree
seata-server 端数据库连接用户、业务数据库 undo_log 所属用户都需要什么权限?
Under the influence of external factors, how to manage internal resources and reduce costs is the key
Leetcode 5. Longest Palindromic Substring
07. Express routing
Halcon: discrete digital OCR recognition
Study on heritability and field experiment design