Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 4b56739

Browse files
authored
Merge pull request vuejs#1 from vuefe/2.0-cn
merge
2 parents 20210a0 + 5172a05 commit 4b56739

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

‎src/v2/guide/custom-directive.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ new Vue({
117117
```
118118

119119
{% raw %}
120-
<div id="hook-arguments-example" v-demo:hello.a.b="message" class="demo"></div>
120+
<div id="hook-arguments-example" v-demo:foo.a.b="message" class="demo"></div>
121121
<script>
122122
Vue.directive('demo', {
123123
bind: function (el, binding, vnode) {

‎src/v2/guide/events.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -260,6 +260,8 @@ Vue.config.keyCodes.f1 = 112
260260
<div @click.ctrl="doSomething">Do something</div>
261261
```
262262

263+
<p class="tip">Note that modifier keys are different from regular keys and when used with `keyup` events, they have to be pressed when the event is emitted. In other words, `keyup.ctrl` will only trigger if you release a key while holding down `ctrl`. It won't trigger if you release the `ctrl` key alone.</p>
264+
263265
## 为什么在 HTML 中监听事件?
264266

265267
你可能注意到这种事件监听的方式违背了关注点分离(separation of concern)传统理念。不必担心,因为所有的 Vue.js 事件处理方法和表达式都严格绑定在当前视图的 ViewModel 上,它不会导致任何维护上的困难。实际上,使用 `v-on` 有几个好处:

‎src/v2/guide/installation.md‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ Vue.js 不支持 IE8 及其以下版本,因为 Vue.js 使用了 IE8 不能模
3434

3535
推荐:[unpkg](https://unpkg.com/vue/dist/vue.js), 会保持和 npm 发布的最新的版本一致。可以在 [unpkg.com/vue/](https://unpkg.com/vue/) 浏览 npm 包资源。
3636

37-
也可以从 [jsDelivr](//cdn.jsdelivr.net/vue/{{vue_version}}/vue.js)[cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js)获取,不过这两个服务版本更新可能略滞后。
37+
也可以从 [jsDelivr](//cdn.jsdelivr.net/vue/latest/vue.js)[cdnjs](//cdnjs.cloudflare.com/ajax/libs/vue/{{vue_version}}/vue.js)获取,不过这两个服务版本更新可能略滞后。
3838

3939
## NPM
4040

‎themes/vue/layout/partials/header.ejs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<div id="header">
22
<a id="logo" href="/">
33
<img src="/images/logo.png">
4-
<span>Vue.js <span style="font-size: 12px;">(2017.02.12更新,合并vuejs.org更新!)</span></span>
4+
<span>Vue.js <span style="font-size: 12px;">(2017.02.19更新,合并vuejs.org更新!)</span></span>
55
</a>
66
<a style="
77
position: absolute;

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /