Skip to content
This repository has been archived by the owner on Jan 13, 2021. It is now read-only.

(zh-CN): fix markdown syntax error #30

Merged
merged 2 commits into from May 26, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 1 addition & 1 deletion zh/api.md
Expand Up @@ -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() {
Expand Down