README
easy-event-dispatcher
Installing
Using npm:
$ npm install axios
Methods
方法名 | 说明 | 参数 |
---|---|---|
trigger | 触发事件 | eventName:string |
on | 注册事件 | eventName:string, func |
off | 移除事件 | eventName:string, func |
事件分发器
<script type="module">
import easyEventDispatcher from 'https://cdn.skypack.dev/easy-event-dispatcher';
</script>
Using npm:
$ npm install axios
方法名 | 说明 | 参数 |
---|---|---|
trigger | 触发事件 | eventName:string |
on | 注册事件 | eventName:string, func |
off | 移除事件 | eventName:string, func |