Skip to content

Commit

Permalink
修正 例子中展示结果错误
Browse files Browse the repository at this point in the history
默认混合模式例子中 访问 this.bar 应该返回 TestMixin  中的 bar, 即"bar defined by testMix" ; 另外注释中的 "." 没有必要,容易误解
  • Loading branch information
twoyao authored and Gcaufy committed Jan 18, 2018
1 parent 369617b commit fdd80eb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/md/doc.md
Original file line number Diff line number Diff line change
Expand Up @@ -1216,8 +1216,8 @@ export default class Index extends wepy.page {
};
mixins = [TestMixin ];
onShow() {
console.log(this.foo); // foo defined by index.
console.log(this.bar); // foo defined by testMix.
console.log(this.foo); // foo defined by index
console.log(this.bar); // bar defined by testMix
}
}
```
Expand Down

0 comments on commit fdd80eb

Please sign in to comment.