Skip to content

Commit 2e497d4

Browse files
authored
Update syntax.md
1 parent 70117b8 commit 2e497d4

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/guide/syntax.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Vue.js 使用了基于 HTML 的模版语法,允许开发者声明式地将 DOM
2020
<span>Message: {{ msg }}</span>
2121
```
2222

23-
Mustache 标签将会被替代为对应数据对象上 `msg` 属性的值。无论合适绑定的数据对象上 `msg` 属性发生了改变,插值处的内容都会更新。
23+
Mustache 标签将会被替代为对应数据对象上 `msg` 属性的值。无论何时,绑定的数据对象上 `msg` 属性发生了改变,插值处的内容都会更新。
2424

2525
通过使用 [v-once 指令](/api/#v-once),你也能执行一次性地插值,当数据改变时,插值处的内容不会更新。但请留心这会影响到该节点上所有的数据绑定:
2626

@@ -80,8 +80,6 @@ Mustache 不能在 HTML 属性中使用,应使用 [v-bind 指令](/api/#v-bind
8080

8181
<p class="tip">模板表达式都被放在沙盒中,只能访问全局变量的一个白名单,如 `Math` 和 `Date` 。你不应该在模板表达式中试图访问用户定义的全局变量。</p>
8282

83-
<p class="tip">Template expressions are sandboxed and only have access to a whitelist of globals such as `Math` and `Date`. You should not attempt to access user defined globals in template expressions.</p>
84-
8583
### 过滤器
8684

8785
Vue.js 允许你自定义过滤器,被用作一些常见的文本格式化。过滤器应该被添加在 **mustache 插值**的尾部,由“管道符”指示:

0 commit comments

Comments
 (0)