Skip to content

Commit

Permalink
更新了部分错误信息
Browse files Browse the repository at this point in the history
  • Loading branch information
veaba committed Oct 10, 2016
1 parent a64279a commit c0e053f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/guide/reactivity.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ this.someObject = Object.assign({}, this.someObject, { a: 1, b: 2 })
也有一些数组相关的问题,之前已经在[列表渲染](/guide/list.html#Caveats)中讲过。

## 声明响应式属性
由于 Vue 不允许动态添加顶级响应式属性,这意味着你必须在前期,声明所有的顶级响应式数据属性,哪怕是有空值的实例:
由于 Vue 不允许动态添加根数据属性,所以你必须在初始化实例前声明根数据属性,哪怕只是一个空值:
``` js
var vm = new Vue({
data: {
Expand Down

0 comments on commit c0e053f

Please sign in to comment.