当前位置:网站首页>About the big hole of wechat applet promise
About the big hole of wechat applet promise
2022-07-24 08:08:00 【longlongValue】
I have been using applets since I came into contact typeof Asynchronous operation in callback mode . However, with the in-depth contact, it is found that although this callback method can completely realize relevant operations, its readability and maintainability are not very high . And then I studied it ES6-Promise. I heard that wechat applet support was removed after a period of time , But I can still use it in small programs. I don't know why .
First, let's talk about my directory structure : 
First of all, I put the wx.request stay http.js It 's packed in 
And then in fm_networking.js Make a layer of nesting

When I call outside, I find that I always leave resolve Then he left reject. This is a strange phenomenon for beginners . Then I found out from the root http.js Only left resolve. Then it must be fm_networking.js Problems in ? however fm_networking.js China is only gone resolve. strange ! In the same method, I copied what I wrote before typeof Code discovery is still very successful , The outside is only gone resolve. I can't think of my sister . Even I once thought it was impossible to nest like this .
Then when I checked the problem, I found that I commented on me set There is no problem with a line of code of the data .
Suddenly I remember a blog I read before Wang Hanyan's blog Written in : 
promise This is what happened reject in error There are no hints .
It's killing people .
边栏推荐
- 学习笔记总结篇(一)
- Figure New Earth: how to import CAD files with modified elevation datum (ellipsoid)
- Collection of linked list topics
- 【线性代数】深入理解矩阵乘法、对称矩阵、正定矩阵
- What is the NFT concept.. Fully understand NFT market, technology and cases
- Natural language processing Jieba
- Vidar-Team战队专访:AS WE DO, AS YOU KNOW.
- Case practice - panoramic image mosaic: feature matching method
- Image feature Harris corner detection
- *Yolo5 learning * data experiment based on yolo5 face combined with attention model se
猜你喜欢

Hcip day 8 notes
![[linear algebra] deeply understand matrix multiplication, symmetric matrix, positive definite matrix](/img/0f/4b7e92c61814b39e9b0448c0c854ee.png)
[linear algebra] deeply understand matrix multiplication, symmetric matrix, positive definite matrix

FPGA综合项目——图像边缘检测系统

图新地球:Revit建模的rvt格式BIM模型如何带着纹理精准匹配地图

Case practice - panoramic image mosaic: feature matching method

【游戏合集】手机都要被塞爆了,6款优质Pygame游戏合集降临~(附源码)

Avoid pitfalls and stay away from PUA in the workplace. You need to know the common routines and scripts of PUA!

Intelligent robots and intelligent systems (Professor Zheng Zheng of Dalian University of Technology) -- 1. robots and mobile robots

Hcip 13th day notes

Robot operation continuous learning thesis (1) original text reading and Translation -- primitive generation strategy learning without catastrophic forgetting in robot operation
随机推荐
Robot operation continuous learning thesis (1) original text reading and Translation -- primitive generation strategy learning without catastrophic forgetting in robot operation
P1739表达式括号匹配题解
POJ3278抓住那头牛题解
QT | string generation QR code function
The difference between online learning and offline learning
Hcip day 8 notes
Debug No4 use renderdoc to troubleshoot bugs
Opencv project practice - credit card recognition
Talk about compilers based on vscode
Database system - Basic Concepts
Learning dynamic Siamese network for visual object tracking full text translation
Qt|字符串生成二维码功能
MySQL -- subquery scalar subquery
[shutter] the shutter doctor reports an error
Installation and use of CONDA
Movie recommendation system
The growth path of software testing
【MATLAB】(三)MATLAB在高等数学中的应用
Collection of binary tree topics
Use of ArrayList