watch

watch
//-------------------------
重点:
1)watch what you say/your tongue
2)watch the world go by
3)Be on the watch for anything suspicious.

//---------------------------------
watch [v.]

1. LOOK[I,T]

2. BE CAREFUL [T] to act carefully in order to avoid an accident or unwanted situation:
   [watch(that)]
     Watch he doesn't run into the road.
     She's a student and has to watch her budget closely.
   
   [watch what you say/your tongue/your language/your mouth etc](= be careful not to hurt or offend people
    by what you say)
     Employees should watch what they say in personal emails.
   [watch your weight/watch what you eat](= be careful not to get fat)
      He maybe a former athlete, but he still has to watch his weight.     

3. PAY ATTENTION [T] to pay attention to a situation that interests or worries you to see how it develops:
   [watch closely/carefully]
      American companies are watching Japanese developments closely.
      The government will watch the progress of these schemes with interest.
    
4. CARE FOR [T] to stay with someone or something so that nothing bad happens to them:
    She watches the kids for us occasionally.
5. SECURITY [T] to secrectly watch a person or place:
    I feel like I'm being watched.

13 [watch the world go by]
   to relax outside by just looking at the people around you:
      lingering in a pavement cafe, watching the world go by
14 [you watch] informal
   used to tell someone that you know what will happen:
   He'll win this time, you watch.

//-------------------------------------------------------
watch [n.]
1. [c] a small clock that you wear on your wrist or keep in your pocket:
    My watch has stopped.
    How do you keep track of time if you don't wear a watch.
2.[singular, U]when you watch someone or something carefully, or pay careful attention to them,
   so that you are ready to act if necessary:
     The police arrived to keep watch on the mouth of the tunnel.
   [+on/over]
     He and his wife maintained a 24-hour watch ove their son.
     Security forces kept a close watch on our activities.
3. [keep a watch out for sb/sth] also [be on the watch for sb/sth]
   to be looking and waiting for something that might happen or someone you might see,especially so that
   you can avoid danger, trouble etc:
    Be on the watch for anything suspicious.
5. [C,U] a period of time when it is someone's duty to stay somewhere and look for signs of danger:
     The first watch is from now until midnight.
   [on watch]
     Who's on watch tonight?     
 
//---------------
Be on the watch for a sudden change in the patient's condition.
要密切注意病人病情可能突然变化。
在 Vue.js 中,`watch` 是一个非常重要的部分,它允许你监视 Vue 实例上的数据变化。当数据发生变化时,`watch` 会自动运行你提供的回调函数。这使得你可以在数据变化时执行某些操作,例如更新 UI 或执行其他任务。 使用 `watch` 的基本语法如下: ```javascript watch: { // 监视 data 中的 'someData' 属性变化 'someData': function (newVal, oldVal) { // 当 'someData' 发生变化时,这里的代码将会被执行 }, // 可以监视多个属性,返回 true 表示该监视器有效 'anotherData': ['isSomeDataChanged', function (newVal, oldVal) { // 当 'anotherData' 或 'someData' 发生变化时,这里的代码将会被执行 }] } ``` 这里的 `'someData'` 是需要监视的属性名,`function` 是当属性值变化时要执行的回调函数。回调函数接受两个参数:新值和旧值。这两个参数是数据变化的触发点。在第二个示例中,`'anotherData'` 是一个依赖项,`['isSomeDataChanged', ...]` 表示只有当 `isSomeDataChanged` 的值为 `true` 时,才会触发对 `anotherData` 的监视。 注意,由于 Vue 的响应式系统是基于观察者模式的,所以对对象的修改会触发一系列反应。这意味着如果你多次修改同一个对象并使用 `watch` 监视它,每次修改都会触发回调函数。如果你希望减少不必要的计算或触发不必要的操作,可以考虑使用 Vue 的 `computed` 属性或者使用 Vuex 进行状态管理。 最后要注意的是,`watch` 在初始化时并不会执行。它只有在第一次数据改变时才会被触发。如果需要在 Vue 实例初始化时运行某些操作,可以使用 `created` 或 `mounted` 钩子函数。
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值