- 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.
推薦閱讀
- 通信網絡基礎與設備
- 微商之道
- 5G承載網網絡規劃與組網設計
- INSTANT PhpStorm Starter
- OpenLayers Cookbook
- JBoss EAP6 High Availability
- Metasploit Penetration Testing Cookbook
- 網管第一課:網絡操作系統與配置管理
- 從實踐中學習手機抓包與數據分析
- Implementing NetScaler VPX?
- 數據血緣分析原理與實踐
- 園區網絡架構與技術
- 網絡安全之道
- Architecting Data:Intensive Applications
- Hands-On Full Stack Web Development with Aurelia