- Vue.js Quick Start Guide
- Ajdin Imsirovic
- 100字
- 2021-06-24 18:23:57
How does Vue achieve this?
Vue stores its data in the data option, which is either a function or an object:
...
data: {
// the model goes here
}
...
Any change in the data model is reflected in the view (on the screen). Vue achieves this reactivity with the help of getters and setters. When the data object is received by the Vue instance, all the properties of the data object will be updated as getters and setters. This is done with the help of the Object.defineProperty API.
推薦閱讀
- 網管員典藏書架:網絡管理與運維實戰寶典
- Hands-On Chatbot Development with Alexa Skills and Amazon Lex
- 重新定義Spring Cloud實戰
- 正在爆發的互聯網革命
- 區塊鏈輕松上手:原理、源碼、搭建與應用
- 電力物聯網工程技術原理與應用
- Metasploit Penetration Testing Cookbook
- The Kubernetes Workshop
- Learning Storm
- 局域網組成實踐
- 圖解物聯網
- 數字王國里的虛擬人:技術、商業與法律解讀
- 從物聯到萬聯:Node.js與樹莓派萬維物聯網構建實戰
- Microservices Development Cookbook
- OpenCV 3 Computer Vision with Python Cookbook