Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
menglexing authored Sep 11, 2017
1 parent 6ceb3cb commit e2d3248
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,13 +56,13 @@ if (loaded) {
// do something
}
```
监听所有事件。`ALL`事件是一个特殊的事件,当有任何事件触发是,它也会触发:
监听所有事件。`ALL`事件是一个特殊的事件,当有任何事件触发时,它也会触发:
```javascript
evt.on('ALL', function(name, data){
console.log(name, data)
})

evt.emit('xx', 'Hellow') // => xx Hellow
evt.emit('xx', 'Hello') // => xx Hello
```

作为混入类使用也是没有问题的
Expand Down

0 comments on commit e2d3248

Please sign in to comment.