- 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 Industrial Internet of Things
- 信息通信網絡建設安全管理概要2
- 互聯網基礎資源技術與應用發展態勢(2021—2023)
- 智慧城市中的移動互聯網技術
- Spring Cloud微服務架構進階
- 面向云平臺的物聯網多源異構信息融合方法
- 計算機網絡與通信(第2版)
- NB-IoT物聯網技術解析與案例詳解
- Mastering TypeScript 3
- Yii Application Development Cookbook(Second Edition)
- 城市治理一網統管
- The Kubernetes Workshop
- 面向5G-Advanced的關鍵技術
- 一本書讀懂物聯網
- 全聯網標識服務