06:00 假設我們在網頁(F12)上要修改 data.product 的值,可以直接使用 F12 Console 頁面中輸入 mounted.product = "我要修改的值"
Q: 為什麼是修改 mounted 呢 ?
A: ./main.js 當中, 我們使用 app(js) 宣告,而 #app(html) 要使用 js 的值時, 需要 mounted 綁定 #app (html-id) 上。
forked from Code-Pop/Intro-to-Vue-3
Code for Vue Mastery's Intro to Vue 3 course:
CHunYenc/Intro-to-Vue-3
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
Code for Vue Mastery's Intro to Vue 3 course:
Resources
Stars
Watchers
Forks
Packages 0
No packages published
Languages
- CSS 74.3%
- HTML 22.4%
- JavaScript 3.3%