Skip to content
This repository was archived by the owner on Aug 8, 2022. It is now read-only.

Commit 9207dce

Browse files
authored
update: src/guide/single-file-component.md (close #231)
1 parent c654e76 commit 9207dce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/guide/single-file-component.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
在很多 Vue 项目中,我们使用 `app.component` 来定义全局组件,紧接着用 `app.mount('#app')` 在每个页面内指定一个容器元素。
66

7-
这对于中小型项目非常有效,在这些项目里 JavaScript 只被用来加强特定的视图。但当在更复杂的项目中,或者你的前端完全由 JavaScript 驱动的时候,下面这些缺点将变得非常明显:
7+
这对于中小型项目非常有效,在这些项目里 JavaScript 只被用来增强特定的视图。但当在更复杂的项目中,或者你的前端完全由 JavaScript 驱动的时候,下面这些缺点将变得非常明显:
88

99
- **全局定义 (Global definitions)** 强制要求每个 component 中的命名不得重复;
1010
- **字符串模板 (String templates)** 缺乏语法高亮,在 HTML 有多行的时候,需要用到丑陋的 `\`;

0 commit comments

Comments
 (0)