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
d5ff59ac76b024e48cb319376745ae669ac4c30e
front-end-example
/
04-dom-events-async
/
08-promise-and-render
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
练习 8
:
Promise 和渲染
目标
学会在 Promise 完成后把结果渲染到页面。
你要练什么
Promise
.then()
catch()
loading 状态
任务
点击按钮后显示“加载中”
等待 Promise 返回数据
把课程名称渲染到列表
如果失败,显示错误信息
文件
starter.html
starter.js
answer.html
answer.js