暂无描述
您最多选择25个主题 主题必须以字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
dienianindya 65435fcb07 update sore 1年前
..
tests update sore 1年前
LICENSE update sore 1年前
README.md update sore 1年前
index.d.ts update sore 1年前
index.js update sore 1年前
package.json update sore 1年前

README.md

@protobufjs/eventemitter

npm

A minimal event emitter.

API

  • new EventEmitter()
    Constructs a new event emitter instance.

  • EventEmitter#on(evt: string, fn: function, [ctx: Object]): EventEmitter
    Registers an event listener.

  • EventEmitter#off([evt: string], [fn: function]): EventEmitter
    Removes an event listener or any matching listeners if arguments are omitted.

  • EventEmitter#emit(evt: string, …args: *): EventEmitter
    Emits an event by calling its listeners with the specified arguments.

License: BSD 3-Clause License