1.1.10 • Published 2 years ago

events-yang v1.1.10

Weekly downloads
-
License
ISC
Repository
-
Last release
2 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

2 years ago

1.1.11

2 years ago

1.1.1

2 years ago

1.0.9

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago