mirror of
https://gitee.com/many2many/java-web.git
synced 2025-01-11 22:50:54 +08:00
Compare commits
No commits in common. "382617de81d6a9eab4c1d914d4ccc01c35c9ebaa" and "f6aea329f031fccdc9d8076a9a3af7b9ef4bb752" have entirely different histories.
382617de81
...
f6aea329f0
@ -82,7 +82,6 @@ doSomethingAsync((result1) => {
|
||||
为了解决这个问题,JavaScript 社区引入了 `Promise` 和 `async/await`,这些特性可以帮助我们以更简洁的方式编写异步代码。
|
||||
|
||||
##### 3.3.1.2 Promise对象
|
||||
[Promise 10分钟,理论+实操](https://www.bilibili.com/video/BV1yu4y1H7ET/?spm_id_from=333.337.search-card.all.click&vd_source=fb252f6c305362a2870fb7388465df99)
|
||||
[最好理解的Promise教程](https://www.bilibili.com/video/BV1454y1R7vj?p=1)
|
||||
|
||||
[异步编程: 一次性搞懂 Promise, async, await (#js #javascript)](https://www.bilibili.com/video/BV1WP4y187Tu/?spm_id_from=333.337.search-card.all.click&vd_source=fb252f6c305362a2870fb7388465df99)
|
||||
@ -208,9 +207,6 @@ async function example() {
|
||||
|
||||
|
||||
#### 3.3.2 XMLHttpRequest对象的使用 (了解)
|
||||
|
||||
[AJAX 简介](https://www.runoob.com/ajax/ajax-intro.html)
|
||||
|
||||
- **基本用法:** 创建对象、设置请求类型、发送请求、处理响应。
|
||||
- **事件监听:** 监听 `onreadystatechange` 事件来获取服务器响应的状态。
|
||||
- **请求方法:** `open` 方法设置请求类型和URL,`send` 方法发送请求。
|
||||
|
Loading…
Reference in New Issue
Block a user