This website requires JavaScript.
Explore
Help
Register
Sign In
rou
/
front-end-example
Watch
1
Star
0
Fork
0
You've already forked front-end-example
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
Files
3850ce7399061a80a78e98d428de896fb5fb2333
front-end-example
/
04-dom-events-async
/
09-async-await-panel
History
rou
1071f4db05
update
2026-03-23 14:56:04 +08:00
..
answer.html
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
answer.js
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
README.md
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
starter.html
feat: add TypeScript lessons and learning panel
2026-03-19 10:06:11 +08:00
starter.js
update
2026-03-23 14:56:04 +08:00
README.md
Unescape
Escape
练习 9
:
async / await 面板
目标
学会用
async
/
await
写一个更直观的异步流程。
你要练什么
async
await
try...catch
DOM 更新
任务
点击按钮后进入加载状态
等待异步函数返回用户信息
把结果渲染到卡片里
如果失败,显示错误信息
文件
starter.html
starter.js
answer.html
answer.js