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
8b83f63235cc36353f7fc03c05dee40ff0434dc9
front-end-example
/
04-dom-events-async
/
03-create-and-remove
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
练习 3
:
创建和删除节点
目标
学会动态新增和删除页面节点。
你要练什么
createElement
appendChild
remove
事件绑定
任务
点击“新增任务”时往列表里加一个新项
点击“删除最后一项”时删除最后一个列表项
文件
starter.html
starter.js
answer.html
answer.js