feat: update readme

pull/7/head
xuwu 2021-03-12 07:24:44 +08:00
parent b25f66ef21
commit c64298ca69
1 changed files with 13 additions and 0 deletions

View File

@ -23,12 +23,25 @@
### 今日原题
第五题:[Promise.all 错误处理](https://github.com/KieSun/fucking-frontend/issues/6)
异步请求通过 Promise.all 处理,怎么让其中失败的所有请求重试。
```js
Promise.all([A, B, C, D])
// 4 个请求完成后发现 AD 请求失败了,如果让 AD 请求重试
```
第四题:[Promise 并发控制](https://github.com/KieSun/fucking-frontend/issues/5)
<details>
页面上有三个按钮,分别为 A、B、C点击各个按钮都会发送异步请求且互不影响每次请求回来的数据都为按钮的名字。
请实现当用户依次点击 A、B、C、A、C、B 的时候,最终获取的数据为 ABCACB。
</details>
第三题:[请按照用例实现代码](https://github.com/KieSun/fucking-frontend/issues/3)
<details>