Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit db4ccb4

Browse files
authoredNov 2, 2016
Update instance.md
1 parent 7f942fd commit db4ccb4

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed
 

‎src/guide/instance.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -93,8 +93,6 @@ var vm = new Vue({
9393
// -> "a is: 1"
9494
```
9595

96-
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.
97-
9896
也有一些其它的钩子,在实例生命周期的不同阶段调用,如 `mounted``updated``destroyed` 。钩子的 `this` 指向调用它的 Vue 实例。一些用户可能会问 Vue.js 是否有“控制器”的概念?答案是,没有。组件的自定义逻辑可以分布在这些钩子中。
9997

10098

0 commit comments

Comments
 (0)
Please sign in to comment.