当前位置:网站首页>Problem set
Problem set
2022-07-25 23:37:00 【Small_ xiuxiu】
1、Promise
const fn = () => (new Promise((resolve, reject) => {
console.log(1);
resolve('success')
}))
fn().then(res => {
console.log(res)
})
console.log('start')
const fn = () =>
new Promise((resolve, reject) => {
console.log(1);
resolve("success");
});
console.log("start");
fn().then(res => {
console.log(res);
});
边栏推荐
- Serialize data type
- SAP Message No. VG202 IDoc E1EDK18 中付款条款已经转移:检查数据
- How does Navicat modify the language (Chinese or English)?
- 动态内存管理
- 热部署和热加载有什么区别?
- Implementation of date class
- 行云管家V6.5.1/2/3系列版本发布:数据库OpenAPI能力持续强化
- 2022牛客多校第二场
- TS function
- Recursion of function (use recursion to find the factorial of 1-N) (use recursion to find Fibonacci sequence) (use recursion to traverse data)
猜你喜欢

Npm+ module loading mechanism

ABAP 代码中读取会计科目的字段状态(隐藏、可选、必输)

Family relationship calculator wechat applet source code

utility实用组件学习之swap,move,forward,exchange

What is the difference between'1 and'b1 when assigning values

Swap, move, forward, exchange of utility component learning

谷粒学苑P98踩坑 e.GlobalExceptionHandler : null

E-commerce RPA, a magic weapon to promote easy entry

Qpprogressbar for QT style (QSS) application

Multimodal deep multi modal sets
随机推荐
Ratio of learning_ add,ratio_ subtract,ratio_ multiply,ratio_ Use of divide
JS regular expression content:
[testing technology automated testing pytest] basic summary of pytest
This point inside the function / change this point inside the function
Duplicate numbers in array
获取马蜂窝酒店数据
XxE & XML external entity injection utilization and bypass
Numerical learning iota, accumulate
Good news under the epidemic
Serialize operator
【微信小程序】页面导航
[QNX hypervisor 2.2 user manual]9.6 GDB
【MUDUO】Thread封装
E-commerce RPA, a magic weapon to promote easy entry
BI 系统中为什么会有很多快照表?
EasyExcel实用技巧
反射之类加载过程
生成随机数random学习之uniform_int_distribution,uniform_real_distribution
Implementation of mesh parameterized least squares conformal maps (3D mesh mapping to 2D plane)
Learning exploration-3d rotation card