2.12. Vue3 snooping Properties

发布时间 : 2025-10-25 13:33:37 UTC      

Page Views: 9 views

In this chapter, we will introduce the Vue3 snooping properties watch we can pass through watch to respond to changes in the data.

The following example is done by using the watch implement counters:

2.12.1. Example

counter: {{ counter }}    

The following example converts kilometers to meters:


2.12.2. Example

Vue Test Example - Rookie Tutorial(runoob.com)kilometre :metre :    

In the above code, we created two input boxes data attribute in kilometers and meters the initial values are all 0. watch object has been created data there are two monitoring methods for the kilometers and meters .

When we enter the data in the input box again, watch will listen for changes in data and change its own value in real time. You can take a look at the following video demonstration:

Your browser does not support video label.

Used in asynchronous loading watch

Asynchronous data loading Vue passes through watch option provides a more general way to respond to changes in data.

The following example we use axios library, which will be described in detail later.

2.12.3. Example

    

《地理信息系统原理、技术与方法》  97

最近几年来,地理信息系统无论是在理论上还是应用上都处在一个飞速发展的阶段。 GIS被应用于多个领域的建模和决策支持,如城市管理、区划、环境整治等等,地理信息成为信息时代重要的组成部分之一; “数字地球”概念的提出,更进一步推动了作为其技术支撑的GIS的发展。 与此同时,一些学者致力于相关的理论研究,如空间感知、空间数据误差、空间关系的形式化等等。 这恰好说明了地理信息系统作为应用技术和学科的两个方面,并且这两个方面构成了相互促进的发展过程。