From d6ea5f4190876cc98e424acacdae3ba1da619fba Mon Sep 17 00:00:00 2001 From: MoLice Date: Thu, 29 Aug 2019 19:48:15 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=20HTML=20attribute=20=E7=9A=84?= =?UTF-8?q?=E7=BF=BB=E8=AF=91=E4=BB=8E=E2=80=9C=E7=89=B9=E6=80=A7=E2=80=9D?= =?UTF-8?q?=E6=94=B9=E4=B8=BA=E2=80=9C=E5=B1=9E=E6=80=A7=E2=80=9D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/v2/guide/syntax.md | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/src/v2/guide/syntax.md b/src/v2/guide/syntax.md index 3416995c0..acc14634f 100644 --- a/src/v2/guide/syntax.md +++ b/src/v2/guide/syntax.md @@ -60,21 +60,21 @@ new Vue({

你的站点上动态渲染的任意 HTML 可能会非常危险,因为它很容易导致 [XSS 攻击](https://en.wikipedia.org/wiki/Cross-site_scripting)。请只对可信内容使用 HTML 插值,**绝不要**对用户提供的内容使用插值。

-### 特性 +### 属性 -Mustache 语法不能作用在 HTML 特性上,遇到这种情况应该使用 [v-bind 指令](../api/#v-bind): +Mustache 语法不能作用在 HTML 属性上,遇到这种情况应该使用 [v-bind 指令](../api/#v-bind): ``` html
``` -对于布尔特性 (它们只要存在就意味着值为 `true`),`v-bind` 工作起来略有不同,在这个例子中: +对于布尔属性 (它们只要存在就意味着值为 `true`),`v-bind` 工作起来略有不同,在这个例子中: ``` html ``` -如果 `isButtonDisabled` 的值是 `null`、`undefined` 或 `false`,则 `disabled` 特性甚至不会被包含在渲染出来的 `