wx-event-emitter
EventEmitter for browser, Miniprogram(weapp/wxapp).
Install
To use this module directly (without browserify), install it:
npm install wx-event-emitter
With npm Or Miniprogram do:
const EventEmitter = require('wx-event-emitter');
For use in web browsers do:
<script src="dist/event-emitter.js"></script>
Add Namespace
emitter.on('click.a');
Documentation
The API in line with Nodejs. Nodejs