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

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.

主站蜘蛛池模板: 晋州市| 永安市| 门源| 大宁县| 普洱| 重庆市| 饶河县| 彭阳县| 陇川县| 将乐县| 富源县| 通河县| 武隆县| 深州市| 保靖县| 论坛| 唐河县| 化隆| 苗栗县| 诸城市| 毕节市| 时尚| 安远县| 台前县| 禹州市| 宁德市| 南丹县| 保山市| 呼图壁县| 金山区| 康定县| 邛崃市| 安陆市| 金塔县| 托克托县| 朝阳县| 昌图县| 清水河县| 宜兰市| 六盘水市| 塔城市|