当前位置:网站首页>[JS Framework] Failed to execute the callback function:
[JS Framework] Failed to execute the callback function:
2022-06-24 18:02:00 【mb60b79a6396b63】
Recently in use uniapp When doing the Bluetooth function , Because it is necessary to realize disconnection and reconnection , Run into some problems .
uniapp Background threads are not supported ,worker This thing is divided into platforms , So it uses setTimeout The callback method implements reconnection . Report mistakes as headlines :
The following usage is not rigorous , although html We often use this on the page .
setTimeout(func(),2000)
- 1.
Changed to the following
setTimeout(function(){
return func()
},2000)
- 1.
- 2.
- 3.
That's all right. .
You need to declare in the form of a closure , Otherwise, there will be null pointer problems .
边栏推荐
- 腾讯云荣获“可信云技术最佳实践-虚拟化”
- System Verilog - randomize
- EasyGBS视频平台TCP主动模式拉流异常情况修复
- Use py-mysql2pgsql to synchronize MySQL data to Greenplum
- It is often blocked by R & D and operation? You need to master the 8 steps before realizing the requirements
- Easynvr fails to use onvif to detect the device. What is the reason why "no data" is displayed?
- About swagger
- Using easyjson to improve the efficiency of serialization transmission
- Several key points for enterprises to pay attention to digital transformation
- [MySQL practice] binlog, a sharp tool for problem analysis
猜你喜欢

How can programmers reduce bugs in development?

High quality defect analysis: let yourself write fewer bugs

How to decompile APK files

How does the chief information security officer discuss network security with the enterprise board of directors

Complete Guide to web application penetration testing

Six configuration management tools that administrators must know

Eight recommended microservice testing tools

Recommend 14 commonly used test development tools
Issue 39: MySQL time class partition write SQL considerations

Four security issues of low code and no code development
随机推荐
Why should state-owned enterprises accelerate the digital transformation
How much does the page length affect the ranking?
March 27, 2021: give you a head node of the linked list, and rotate the linked list
EasyCVR国标协议接入的通道,在线通道部分播放异常是什么原因?
A set of IM architecture technology dry goods for 100 million users (Part 2): reliability, orderliness, weak network optimization, etc
Software testing methods: a short guide to quality assurance (QA) models
Uncover the secrets of Tencent R & D! 30% of the demand will be responded within 1 day!
Error reported after NPM I
2. Leveldb design principle -- LSM
[2021 taac & Ti-One] frequently asked questions related to Ti-One products
QQ domain name detection API interface sharing (with internal access automatic jump PHP code)
Solutions for RTSP video streaming played by several browsers
Mariana Trench, Facebook's open source code analysis tool
Leetcode skimming questions - the 72nd biweekly match and 281 weekly match
[go language development] start to develop Meitu station from 0 - Lesson 5 [receive pictures and upload]
How to build RTSP test URL in Intranet Environment
On software requirement analysis
See through the new financial report of Tencent music, online music needs b+c
Optimizing bloom filter: challenges, solutions, and comparisons
LC 300. Longest increasing subsequence