h5emitter
TypeScript icon, indicating that this package has built-in type declarations

3.0.0 • Public • Published

h5emitter

NPM version Build Status Coverage Status

emitter event function.

Install 安装

$ npm install --save h5emitter

Usage 使用方法

绑定和触发事件 bind and trigger events

var emitter = new h5emitter.Emitter()

emitter.on('update', function (value) {
  console.log(value)
})

emitter.emit('update', 'hello')

License

MIT © zswang

Readme

Keywords

Package Sidebar

Install

npm i h5emitter

Weekly Downloads

0

Version

3.0.0

License

MIT

Last publish

Collaborators

  • zswang