当前位置:网站首页>Async and await
Async and await
2022-07-01 06:26:00 【HHYZBC】
async function
- The return value of the function is promise object
- promise The result of the object is determined by async The return value of the function execution determines
await expression
- await The expression on the right is usually promise object , But it can be something else
- If the expression is promise object , await The return is promise The value of success
- If the expression is another value , Take this value directly as await The return value of
Be careful
- await Must be written in async Function , but async There can be no await
- If await Of promise failed , Will throw an exception , Need to pass through try...catch Capture processing
Because I am not particularly good at front-end learning , So it's about async And await See the link below for more information ,
边栏推荐
- 数据库产生死锁了请问一下有没有解决办法
- 高阶-二叉搜索树详解
- HDU - 1501 Zipper(记忆化深搜)
- 【KV260】利用XADC生成芯片温度曲线图
- [ManageEngine] how to realize network automatic operation and maintenance
- sql中TCL语句(事务控制语句)
- [unity shader custom material panel part I]
- 【ManageEngine卓豪】用统一终端管理助“欧力士集团”数字化转型
- SystemVerilog learning-10-validation quantification and coverage
- Application of IT service management (ITSM) in Higher Education
猜你喜欢
随机推荐
异常检测方法梳理,看这篇就够了!
SystemVerilog learning-06-class encapsulation
局域网监控软件有哪些功能
C语言课设学生选修课程系统(大作业)
[unity shader stroke effect _ case sharing first]
子类调用父类的同名方法和属性
C language course set up library information management system (big homework)
【ITSM】什么是ITSM,IT部门为什么需要ITSM
JMM details
基金定投是高风险产品吗?
ABP 学习解决方案中的项目以及依赖关系
网络爬虫
Tidb database characteristics summary
Minio error correction code, construction and startup of distributed Minio cluster
JMM详解
伪装请求头库: anti-useragent
Mysql 表分区创建方法
Teach you how to implement a deep learning framework
Kubedm builds kubenetes cluster (Personal Learning version)
lxml模块(数据提取)
https://blog.csdn.net/qq_40282016/article/details/118461230?ops_request_misc=%257B%2522request%255Fid%2522%253A%2522165493231716781683940327%2522%252C%2522scm%2522%253A%252220140713.130102334..%2522%257D&request_id=165493231716781683940327&biz_id=0&utm_medium=distribute.pc_search_result.none-task-blog-2~all~sobaiduend~default-1-118461230-null-null.142^v13^control,157^v14^control&utm_term=async+%E4%B8%8E+await&spm=1018.2226.3001.4187


![[ManageEngine Zhuohao] helps Julia college, the world's top Conservatory of music, improve terminal security](/img/fb/0a9f0ea72efc4785cc21fd0d4830c2.png)





