Skip to content

Commit 4166741

Browse files
authored
改通顺些
From a security perspective, you should only use Vue templates that you can trust. Never use user-generated content as your template.
1 parent c6d877e commit 4166741

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/api/index.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -546,11 +546,11 @@ type: api
546546

547547
- **详细:**
548548

549-
一个字符串模板作为 Vue 实例的标识使用。模板将会 **替换** 挂载元素。挂载元素的内容都将被忽略,除非模板有内容分发 slot。
549+
一个字符串模板作为 Vue 实例的标识使用。模板将会 **替换** 挂载的元素。挂载元素的内容都将被忽略,除非模板的内容有分发 slot。
550550

551551
如果值以 `#` 开始,则它用作选项符,将使用匹配元素的 innerHTML 作为模板。常用的技巧是用 `<script type="x-template">` 包含模板。
552552

553-
<p class="tip">出于安全考虑,你应该只使用你信任的 Vue 模板。避免使用其他用户级的代码作为你的模板。</p>
553+
<p class="tip">出于安全考虑,您应该只使用您信任的 Vue 模板。避免使用其他人生成的内容作为您的模板。</p>
554554

555555
- **另见:**
556556
- [生命周期图示](/guide/instance.html#Lifecycle-Diagram)

0 commit comments

Comments
 (0)