1.1.10 • Published 3 years ago

events-yang v1.1.10

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

最简单用法

import Event from 'events-yang';
  Event.on('test', (str) => {
    console.log('hello  world',str);
  });
  Event.emit('test','ttttt')
import Events from 'events-yang' 
const event = new Events.EventObj();
const on = event.on;
const emit = event.emit;
const show = () => {
  console.log(event);
};
export default {
  on,
  emit,
  show,
};
    Events.on('test',(str)=>{
      console.log(str)
    })
    Events.emit('test', 'this is record');
1.1.10

3 years ago

1.1.11

3 years ago

1.1.1

3 years ago

1.0.9

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago