Skip to content

Commit

Permalink
Revise beforeUpdate API entry, fixes vuejs/vue#7481 (#1395)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisvfritz authored and Jinjiang committed Jan 30, 2018
1 parent b3de599 commit af9154b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/v2/api/index.md
Expand Up @@ -789,11 +789,9 @@ type: api

- **详细**

数据更新时调用,发生在虚拟 DOM 重新渲染和打补丁之前
数据更新时调用,发生在虚拟 DOM 打补丁之前。这里适合在更新之前访问现有的 DOM,比如手动移除已添加的事件监听器

你可以在这个钩子中进一步地更改状态,这不会触发附加的重渲染过程。

**该钩子在服务器端渲染期间不被调用。**
**该钩子在服务器端渲染期间不被调用,因为只有初次渲染会在服务端进行。**

- **参考**[生命周期图示](../guide/instance.html#生命周期图示)

Expand Down

0 comments on commit af9154b

Please sign in to comment.