靜網PWA視頻評論

computed和watch的區別 側重點有什麼不同

2023年11月15日

- txt下載

computed和watch的區別:computed是計算屬性;watch是監聽,監聽data中的數據變化。computed支持緩存,當其依賴的屬性的值發生變化時,計算屬性會重新計算,反之,則使用緩存中的屬性值;watch不支持緩存,當對應屬性發生變化的時候,響應執行。

computed和watch的區別


一、指代不同
1、computed: (用計算機或計數器)計算;估計。
2、watch:注視;看守;觀看;手錶;監視;看守;值班。
二、側重點不同
1、computed: 多用於表示人在使用計算機或計算器在進行計算、估算。
2、watch:多用於表示對某事物或人的看守、監視;同時表示物體:手錶之意。
三、引證用法不同
1、computed:compute作計算,估算解時,是正式用法,指計算結果、答案、數目等;用作及物動詞時,可接名詞、代詞或that從句作賓語。
2、watch:watch的基本意思是觀看、注視,指用眼睛跟蹤某物以觀察到每一個動作、變化、危險跡象、機會等。引申可表示照管、守護、保衛等,指明確需要警覺,做好防止危險發生的準備,強調連續性和職務性。

computed和watch的造句


1、computed tomographic scanner for whole body
2、A chest computed tomography showed esophageal cancer with pneumopericardium.
3、Scientists have computed the probable course of the rocket.
4、an arithmetic operation that is the inverse of multiplication; the quotient of two numbers is computed.
5、The magnitudes of the rectangular components of a vector are easily computed.
6、Here, now watch how I cut this, OK?
嘿,現在看我怎樣切,好嗎?
7、The gold watch should be put up in a safe place.
這隻金表應放在一個安全的地方。
8、What sort of man can stand by 'idly and watch his own brother being burned alive?
世上怎麼會有人眼看著自己的親生兄弟活活燒死,還站在一旁無動於衷呢?
9、I had my watch mended
我已把我的表修好。
10、I traded my watch for a bicycle.
我用我的手錶換了一輛自行車。

收藏

相關推薦

清純唯美圖片大全

字典網 - 試題庫 - 元問答 - 简体 - 頂部

Copyright © cnj8 All Rights Reserved.