From 1fde45e8c7fd239741bbd4290cd633e0717edecf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B8=B8=E9=87=91?= <2475477667@qq.com> Date: Thu, 21 May 2020 11:26:08 +0800 Subject: [PATCH 1/2] (zh-CN): fix markdown syntax error --- zh/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/api.md b/zh/api.md index c1ee8cf..ce72ea9 100644 --- a/zh/api.md +++ b/zh/api.md @@ -143,7 +143,7 @@ sidebarDepth: 2 - **`this`的用法** - **`this` 在 `setup()` 中不可用。**由于 `setup()` 在解析 2.x 选项前被调用,`setup()` 中的 `this` 将与 2.x 选项中的 `this` 完全不同。同时在 `setup()` 和 2.x 选项中使用 `this` 时将造成混乱。在 `setup()` 中避免这种情况的另一个原因是:这对于初学者来说,混淆这两种情况的 `this` 是非常常见的错误: + **`this` 在 `setup()` 中不可用。** 由于 `setup()` 在解析 2.x 选项前被调用,`setup()` 中的 `this` 将与 2.x 选项中的 `this` 完全不同。同时在 `setup()` 和 2.x 选项中使用 `this` 时将造成混乱。在 `setup()` 中避免这种情况的另一个原因是:这对于初学者来说,混淆这两种情况的 `this` 是非常常见的错误: ```js setup() { From 8960a6852c03dc37a4ecf553b5baf17d530de3b4 Mon Sep 17 00:00:00 2001 From: Jinjiang Date: Tue, 26 May 2020 12:21:15 +0800 Subject: [PATCH 2/2] Update api.md --- zh/api.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zh/api.md b/zh/api.md index ce72ea9..b7ad06c 100644 --- a/zh/api.md +++ b/zh/api.md @@ -143,7 +143,7 @@ sidebarDepth: 2 - **`this`的用法** - **`this` 在 `setup()` 中不可用。** 由于 `setup()` 在解析 2.x 选项前被调用,`setup()` 中的 `this` 将与 2.x 选项中的 `this` 完全不同。同时在 `setup()` 和 2.x 选项中使用 `this` 时将造成混乱。在 `setup()` 中避免这种情况的另一个原因是:这对于初学者来说,混淆这两种情况的 `this` 是非常常见的错误: + **`this` 在 `setup()` 中不可用**。由于 `setup()` 在解析 2.x 选项前被调用,`setup()` 中的 `this` 将与 2.x 选项中的 `this` 完全不同。同时在 `setup()` 和 2.x 选项中使用 `this` 时将造成混乱。在 `setup()` 中避免这种情况的另一个原因是:这对于初学者来说,混淆这两种情况的 `this` 是非常常见的错误: ```js setup() {