当前位置:网站首页>Seconds understand the delay and timing function of wechat applet
Seconds understand the delay and timing function of wechat applet
2022-07-07 02:03:00 【Full stack o-jay】
The time delay function , Print once in two seconds “hello”.
setTimeout(()=>
{
console.log("hello");
}, 2*1000);
Timing function , Print every two seconds “hello”.
setInterval(()=>
{
console.log("hello");
}, 2*1000);
If you want to Cancel timing function , be
var k = setInterval(()=>
{
console.log("hello");
}, 2*1000);
clearInterval(k);
The above function can cancel the timer ,k It's a timer id.
边栏推荐
- The use of video in the wiper component causes full screen dislocation
- 我如何编码8个小时而不会感到疲倦。
- Centros 8 installation MySQL Error: The gpg Keys listed for the "MySQL 8.0 Community Server" repository are already ins
- The cradle of eternity
- Ds-5/rvds4.0 variable initialization error
- MySQL's most basic select statement
- Redis configuration class redisconfig
- JS how to quickly create an array with length n
- freeswitch拨打分机号源代码跟踪
- ROS learning (XX) robot slam function package -- installation and testing of rgbdslam
猜你喜欢
猫猫回收站
ROS学习(十九)机器人SLAM功能包——cartographer
Reptile practice (VI): novel of climbing pen interesting Pavilion
@Before, @after, @around, @afterreturning execution sequence
ROS learning (25) rviz plugin
ROS学习(二十)机器人SLAM功能包——rgbdslam的安装与测试
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
FLIR blackfly s industrial camera: auto exposure configuration and code
Centos8 install MySQL 8.0 using yum x
Cat recycling bin
随机推荐
Hutool post requests to set the body parameter to JSON data
Flir Blackfly S 工业相机 介绍
2022/0524/bookstrap
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (上)
百度飞将BMN时序动作定位框架 | 数据准备与训练指南 (下)
RC振荡器和晶体振荡器简介
组合导航:中海达iNAV2产品描述及接口描述
Blackfly S USB3工业相机:缓冲区处理
ROS学习(23)action通信机制
Blackfly s usb3 industrial camera: buffer processing
Add PDF Title floating window
JS es5 peut également créer des constantes?
Flir Blackfly S 工业相机:自动曝光配置及代码
Gin introduction practice
处理streamlit库上传的图片文件
ROS learning (XX) robot slam function package -- installation and testing of rgbdslam
Flir Blackfly S 工业相机:配置多个摄像头进行同步拍摄
FLIR blackfly s usb3 industrial camera: white balance setting method
Analyze "C language" [advanced] paid knowledge [i]
ROS学习(22)TF变换