From df787d13ab510bb323f0b4e36aef172f31641acf Mon Sep 17 00:00:00 2001 From: VSirrr Date: Thu, 21 Jan 2021 09:25:41 +0800 Subject: [PATCH 1/2] =?UTF-8?q?fix:=20add=20'=E6=89=A7=E8=A1=8C'=20text?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/computed-watch-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/computed-watch-api.md b/src/api/computed-watch-api.md index 049f1da50..5efa20df8 100644 --- a/src/api/computed-watch-api.md +++ b/src/api/computed-watch-api.md @@ -86,7 +86,7 @@ type StopHandle = () => void ## `watch` - `watch` API 与选项式 API [this.$watch](./instance-methods.html#watch) (以及相应的 [watch](./options-data.html#watch) 选项) 完全等效。`watch` 需要侦听特定的 data 源,并在单独的回调函数中副作用。默认情况下,它也是惰性的——即,回调是仅在侦听源发生更改时调用。 + `watch` API 与选项式 API [this.$watch](./instance-methods.html#watch) (以及相应的 [watch](./options-data.html#watch) 选项) 完全等效。`watch` 需要侦听特定的 data 源,并在单独的回调函数中执行副作用。默认情况下,它也是惰性的——即,回调是仅在侦听源发生更改时调用。 - 与 [watchEffect](#watcheffect) 比较,`watch` 允许我们: From 8fdcb2e3ffb75fdd8a61c4090f6fe8da97757d3d Mon Sep 17 00:00:00 2001 From: GU Yiling Date: Thu, 21 Jan 2021 10:49:19 +0800 Subject: [PATCH 2/2] Update src/api/computed-watch-api.md --- src/api/computed-watch-api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/api/computed-watch-api.md b/src/api/computed-watch-api.md index 5efa20df8..b008c5ce8 100644 --- a/src/api/computed-watch-api.md +++ b/src/api/computed-watch-api.md @@ -86,7 +86,7 @@ type StopHandle = () => void ## `watch` - `watch` API 与选项式 API [this.$watch](./instance-methods.html#watch) (以及相应的 [watch](./options-data.html#watch) 选项) 完全等效。`watch` 需要侦听特定的 data 源,并在单独的回调函数中执行副作用。默认情况下,它也是惰性的——即,回调是仅在侦听源发生更改时调用。 + `watch` API 与选项式 API [this.$watch](./instance-methods.html#watch) (以及相应的 [watch](./options-data.html#watch) 选项) 完全等效。`watch` 需要侦听特定的数据源,并在单独的回调函数中执行副作用。默认情况下,它也是惰性的——即回调仅在侦听源发生更改时调用。 - 与 [watchEffect](#watcheffect) 比较,`watch` 允许我们: