当前位置:网站首页>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);
});
边栏推荐
- JS regular expression content:
- 762. Prime number calculation setting in binary representation
- TS basic data type
- What is the difference between hot deployment and hot loading?
- Strategy mode_
- 《数据密集型应用系统设计》 - 应用系统概览
- Deep and shallow copies
- Data broker understanding
- Duplicate numbers in array
- Rendering, filtering (filtering) and sorting of lists
猜你喜欢

Classes and objects (3)

LeetCode 0919. 完全二叉树插入器:完全二叉树的数组表示

Learning exploration - waves

numeric学习之iota,accumulate

【MUDUO】EventLoop事件循环

BI 系统中为什么会有很多快照表?

LeetCode 0135. 分发糖果

Swap, move, forward, exchange of utility component learning
![[code case] blog page design (with complete source code)](/img/9e/0e7cab956515b9cc75a7567eb477d2.png)
[code case] blog page design (with complete source code)

Graph traversal DFS, BFS (code explanation)
随机推荐
This point inside the function / change this point inside the function
E-commerce RPA, a magic weapon to promote easy entry
[QNX Hypervisor 2.2用户手册]9.7 generate
Cuteone: a onedrive multi network disk mounting program / with member / synchronization and other functions
762. Prime number calculation setting in binary representation
ES6 syntax (difference between let, const, VaR, deconstruction assignment, arrow function, residual parameters, extension method of array)
Npm+ module loading mechanism
Data intensive application system design - Application System Overview
[Muduo] package EventLoop and thread
学习探索-波浪
红娘的话
Kotlin 常用知识点汇总
Vscode shortcut key: collapse and expand code
Recursion of function (use recursion to find the factorial of 1-N) (use recursion to find Fibonacci sequence) (use recursion to traverse data)
Serialize addition, deletion, modification and query
Discuz magazine / news report template (jeavi_line) utf8 GBK / DZ template download
Family relationship calculator wechat applet source code
加拿大EE通道
[QNX Hypervisor 2.2用户手册]9.6 gdb
152. 乘积最大子数组-动态规划