当前位置:网站首页>[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 .
边栏推荐
- How does the video platform import the old database into the new database?
- Design topic: MATLAB cellular automata personnel evacuation
- 基于BGP实现纯三层容器网络方案
- 【你真的会用ES吗】ES基础介绍(一)
- Ten software development indicators for project managers
- 13 skills necessary for a competent QA Manager
- Analysis of software supply chain attack package preemption low cost phishing
- Two micro service interviews where small companies suffer losses
- TRCT test cloud + article online speed
- Six configuration management tools that administrators must know
猜你喜欢
Using consistent hash algorithm in Presto to enhance the data cache locality of dynamic clusters

On software requirement analysis

NVM download, installation and use
![[NLP] 3 papers on how Stanford team builds a better chat AI](/img/f1/1c2ff31a728152395618800600df45.jpg)
[NLP] 3 papers on how Stanford team builds a better chat AI

Exception: Gradle task assembleDebug failed with exit code 1

The 'ng' entry cannot be recognized as the name of a cmdlet, function, script file, or runnable program. Check the spelling of the name. If you include a path, make sure the path is correct, and then

Seven strategies for successfully integrating digital transformation

It is often blocked by R & D and operation? You need to master the 8 steps before realizing the requirements

How can programmers reduce bugs in development?
SQL basic tutorial (learning notes)
随机推荐
EasyGBS视频平台TCP主动模式拉流异常情况修复
TRCT test cloud + article online speed
Skills of writing test cases efficiently
Cloud native monitoring configuration self built alertmanager to realize alarm
Use py-mysql2pgsql to synchronize MySQL data to Greenplum
C language | logical operators
Complete Guide to web application penetration testing
Analysis of software supply chain attack package preemption low cost phishing
How to create simple shapes in illustrator 2022
Error reported after NPM I
Specification for self test requirements of program developers
Erc-20 Standard Specification
Open up the construction of enterprise digital procurement, and establish a new and efficient service mode for raw material enterprises
It is often blocked by R & D and operation? You need to master the 8 steps before realizing the requirements
SQL basic tutorial (learning notes)
How much does the page length affect the ranking?
-Bash: wget: command not found
Cloud service selection of enterprises: comparative analysis of SaaS, PAAS and IAAs
Do you charge for PDF merging software? Programmers make one by themselves
Why should state-owned enterprises accelerate the digital transformation