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
acb14455758bdd48f901c9d564e8741acc4b9913
front-end-example
/
07-vue2
/
02-template-bindings
History
rou
acb1445575
l
2026-03-25 18:13:35 +08:00
..
answer.html
feat: add Vue2 exercises for dynamic styles, lifecycle methods, component communication, and course management dashboard
2026-03-23 10:09:29 +08:00
answer.js
feat: add Vue2 exercises for dynamic styles, lifecycle methods, component communication, and course management dashboard
2026-03-23 10:09:29 +08:00
README.md
feat: add Vue2 exercises for dynamic styles, lifecycle methods, component communication, and course management dashboard
2026-03-23 10:09:29 +08:00
starter.html
l
2026-03-25 18:13:35 +08:00
starter.js
l
2026-03-25 18:13:35 +08:00
README.md
Unescape
Escape
练习 2
:
模板语法和绑定
目标
学会把数据绑定到属性和事件上,而不是手动改 DOM。
你要练什么
{{ }}
v-bind
v-on
事件方法
任务
请基于页面结构完成以下操作:
显示课程名和讲师名
绑定图片地址和课程链接
点击按钮后切换收藏状态
文件
starter.html
starter.js
answer.html
answer.js