Skip to content

Commit e292624

Browse files
authored
Merge pull request volksbright#248 from vuejs/master
获取官方更新
2 parents 5640fae + 0018e15 commit e292624

File tree

10 files changed

+2099
-10
lines changed

10 files changed

+2099
-10
lines changed

src/guide/comparison.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ Vue is much less opinionated than Angular 2, offering official support for a var
284284

285285
To get started with Vue, all you need is familiarity with HTML and ES5 JavaScript (i.e. plain JavaScript). With these basic skills, you can start building non-trivial applications within less than a day of reading [the guide](/guide).
286286

287-
Angular 2's learning curve is much steeper. Even without TypeScript, their [Quickstart guide](https://angular.io/docs/js/latest/quickstart.html) starts out with an app that uses ES2015 JavaScript, NPM with 18 dependencies, 4 files, and over 3,000 words to explain it all - just to say Hello World. It's an understatement to say that [Vue's Hello World](index.html#Hello-World) is considerably simpler. It's so trivial in fact, that we don't even dedicate a whole page in the guide to it.
287+
Angular 2's learning curve is much steeper. Even without TypeScript, their [Quickstart guide](https://angular.io/docs/js/latest/quickstart.html) starts out with an app that uses ES2015 JavaScript, NPM with 18 dependencies, 4 files, and over 3,000 words to explain it all - just to say Hello World. It's an understatement to say that [Vue's Hello World](https://jsfiddle.net/chrisvfritz/50wL7mdz/) is considerably simpler. It's so trivial in fact, that we don't even dedicate a whole page in the guide to it.
288288

289289
## Ember
290290

src/guide/computed.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ methods: {
9494
}
9595
```
9696

97-
Instead of a computed property, we can define the same function as a method instead. For the end result, the two approaches are indeed exactly the same. However, the difference is that **computed properties are cached based on its dependencies.** A computed property will only re-evaluate when some of its dependencies have changed. This means as long as `message` has not changed, multiple access to the `reversedMessage` computed property will immediately return the previously computed result without having to run the function again.
97+
Instead of a computed property, we can define the same function as a method instead. For the end result, the two approaches are indeed exactly the same. However, the difference is that **computed properties are cached based on their dependencies.** A computed property will only re-evaluate when some of its dependencies have changed. This means as long as `message` has not changed, multiple access to the `reversedMessage` computed property will immediately return the previously computed result without having to run the function again.
9898

9999
This also means the following computed property will never update, because `Date.now()` is not a reactive dependency:
100100

src/guide/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ If you are an experienced frontend developer and want to know how Vue compares t
1212

1313
## Getting Started
1414

15-
The easiest way to try out Vue.js is using the [JSFiddle Hello World example](https://jsfiddle.net/chrisvfritz/4tpzm3e1/). Feel free to open it in another tab and follow along as we go through some basic examples. If you prefer downloading / installing from a package manager, check out the [Installation](/guide/installation.html) page.
15+
The easiest way to try out Vue.js is using the [JSFiddle Hello World example](https://jsfiddle.net/chrisvfritz/50wL7mdz/). Feel free to open it in another tab and follow along as we go through some basic examples. If you prefer downloading / installing from a package manager, check out the [Installation](/guide/installation.html) page.
1616

1717
## Declarative Rendering
1818

src/guide/instance.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ var vm = new Vue({
9494
// -> "a is: 1"
9595
```
9696

97-
There are also other hooks which will be called at different stages of the instance's lifecycle, for example `mounted`, `updated`, and `destroyed`. All lifecycle hooks are called with their `this` context pointing to the Vue instance invoking it. Some users may have been wondering where the concept of "controllers" lives in the Vue world and the answer is: there are no controllers. Your custom logic for a component would be split among these lifecycle hooks.
97+
There are also other hooks which will be called at different stages of the instance's lifecycle, for example `mounted`, `updated`, and `destroyed`. All lifecycle hooks are called with their `this` context pointing to the Vue instance invoking it. You may have been wondering where the concept of "controllers" lives in the Vue world and the answer is: there are no controllers. Your custom logic for a component would be split among these lifecycle hooks.
9898

9999
## Lifecycle Diagram
100100

src/support-vuejs/index.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,7 @@
1515
<p style="text-align: center; padding-top: 30px; margin-bottom: 0"><a href="http://www.thedifferenceengine.io/"><img src="/images/tde.png" style="width: 300px"></a></p>
1616

1717
<p style="text-align: center; margin-top: 0; margin-bottom: 60px" class="sponsors-page">
18-
<a href="https://itunescn.com">
19-
<img src="/images/itunescn.png">
20-
</a><a href="https://jsfiddle.net">
18+
<a href="https://jsfiddle.net">
2119
<img src="/images/jsfiddle.png">
2220
</a><a href="https://laravel.com">
2321
<img src="/images/laravel.png">
@@ -35,6 +33,10 @@
3533
<img src="/images/trisoft.png">
3634
</a><a href="http://actualize.co" target="_blank" style="width:180px">
3735
<img src="/images/actualize.png" style="width:180px">
36+
</a><a href="https://www.2mhost.com/" target="_blank">
37+
<img src="/images/2mhost.png">
38+
</a><a href="https://vuejsjob.com/?ref=vuejs" target="_blank" style="position:relative;top:6px">
39+
<img src="/images/vuejobs.png">
3840
</a>
3941
</p>
4042

themes/vue/layout/partials/community_dropdown.ejs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,6 @@
55
<li><a href="http://forum.vuejs.org" class="nav-link" target="_blank">Forum</a></li>
66
<li><a href="https://gitter.im/vuejs/vue" class="nav-link" target="_blank">Chat</a></li>
77
<li><a href="https://twitter.com/vuejs" class="nav-link" target="_blank">Twitter</a></li>
8+
<li><a href="https://vuejobs.com/?ref_source=vue" class="nav-link" target="_blank">Jobs</a></li>
89
</ul>
910
</li>

themes/vue/layout/partials/sponsors.ejs

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,6 @@
11
<a class="vip" href="http://www.thedifferenceengine.io/" target="_blank">
22
<img src="/images/tde.png">
33
</a>
4-
<a href="https://www.itunescn.com/" target="_blank" style="top:2px">
5-
<img src="/images/itunescn.png">
6-
</a>
74
<a href="https://jsfiddle.net/" target="_blank">
85
<img src="/images/jsfiddle.png">
96
</a>
@@ -31,3 +28,9 @@
3128
<a href="http://actualize.co/" target="_blank" style="width:144px;">
3229
<img src="/images/actualize.png" style="width:144px">
3330
</a>
31+
<a href="https://www.2mhost.com/" target="_blank" style="width:90px">
32+
<img src="/images/2mhost.png" style="width:90px">
33+
</a>
34+
<a href="https://vuejsjob.com/?ref=vuejs" target="_blank" style="width:90px;top:5px">
35+
<img src="/images/vuejobs.png" style="width:90px">
36+
</a>

themes/vue/source/images/2mhost.png

20.2 KB
Loading

themes/vue/source/images/vuejobs.png

48.8 KB
Loading

0 commit comments

Comments
 (0)