官术网_书友最值得收藏!

  • 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.

主站蜘蛛池模板: 洛阳市| 都匀市| 桃园市| 永川市| 惠安县| 宁明县| 富平县| 华蓥市| 肃宁县| 鸡东县| 包头市| 双柏县| 无棣县| 东乌珠穆沁旗| 麻阳| 和顺县| 财经| 绥江县| 金阳县| 贡嘎县| 英德市| 郧西县| 绥芬河市| 萝北县| 西吉县| 恩平市| 琼海市| 西乌珠穆沁旗| 宝山区| 绵阳市| 泽州县| 永定县| 商洛市| 界首市| 深圳市| 土默特左旗| 区。| 陵川县| 宁德市| 洪江市| 凤庆县|