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
1071f4db05cf49802c49ac5497cfc749f5c06a9d
front-end-example
/
04-dom-events-async
/
07-timers-and-async-order
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
练习 7
:
setTimeout 和异步顺序
目标
理解同步代码和异步回调的执行先后顺序。
你要练什么
setTimeout
同步顺序
异步回调
DOM 日志输出
任务
点击按钮后先输出“开始执行”
再立刻输出“同步代码结束”
然后延迟输出“异步回调完成”
文件
starter.html
starter.js
answer.html
answer.js