0.0.3 • Published 2 years ago
emiton-js v0.0.3
create a file 'emitOn.js'
// emitOn.js
import EmitOn from "emiton-js";
export default new EmitOn()
when use
import E from './emitOn.js'
E.on('hello',(params)=>{
console.log(params)
// todo
})
E.emit('hello',params)