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
7c0cbe1320e76eb15d7e09002b259c004b2243da
front-end-example
/
05-es6-plus
/
01-template-and-destructuring
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
练习 1
:
模板字符串和解构
目标
学会用模板字符串拼接信息,并用解构快速读取对象和数组数据。
你要练什么
模板字符串
对象解构
数组解构
任务
从
student
对象里解构出姓名和阶段
从
scores
数组里解构出前两个分数
用模板字符串把这些信息渲染到页面
文件
starter.html
starter.js
answer.html
answer.js