Skip to content

change 特性 to 属性 #902

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions src/v2/guide/syntax.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ new Vue({

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

### 特性
### 属性

Mustache 语法不能作用在 HTML 特性上,遇到这种情况应该使用 [v-bind 指令](../api/#v-bind):
Mustache 语法不能作用在 HTML 属性上,遇到这种情况应该使用 [v-bind 指令](../api/#v-bind):

``` html
<div v-bind:id="dynamicId"></div>
Expand All @@ -72,7 +72,7 @@ Mustache 语法不能作用在 HTML 特性上,遇到这种情况应该使用 [
<button v-bind:disabled="isButtonDisabled">Button</button>
```

如果 `isButtonDisabled` 的值是 `null`、`undefined` 或 `false`,则 `disabled` 特性甚至不会被包含在渲染出来的 `<button>` 元素中。
如果 `isButtonDisabled` 的值是 `null`、`undefined` 或 `false`,则 `disabled` 属性甚至不会被包含在渲染出来的 `<button>` 元素中。

### 使用 JavaScript 表达式

Expand Down