Skip to content

Commit

Permalink
Merge branch 'master' of github.com:wepyjs/wepy
Browse files Browse the repository at this point in the history
  • Loading branch information
Gcaufy committed Sep 29, 2017
2 parents b2797d1 + 7ab55f8 commit 40d0325
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -879,7 +879,7 @@ onLoad () {
`wepy.component`基类提供三个方法`$broadcast``$emit``$invoke`,因此任一页面或任一组件都可以调用上述三种方法实现通信与交互,如:

```javascript
$this.$emit('some-event', 1, 2, 3, 4);
this.$emit('some-event', 1, 2, 3, 4);
```

组件的事件监听需要写在`events`属性下,如:
Expand Down

0 comments on commit 40d0325

Please sign in to comment.