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

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

主站蜘蛛池模板: 勐海县| 开鲁县| 仲巴县| 利辛县| 鄂托克前旗| 克东县| 静海县| 兰州市| 剑川县| 宜都市| 盖州市| 定日县| 扬中市| 丁青县| 宜黄县| 海阳市| 全州县| 阳原县| 阳信县| 龙岩市| 天水市| 社旗县| 威宁| 大名县| 苏尼特右旗| 旺苍县| 拜泉县| 来安县| 岳池县| 将乐县| 界首市| 枝江市| 武冈市| 南溪县| 武鸣县| 吉林省| 友谊县| 体育| 通州区| 大悟县| 仙游县|