Skip to content

AndriodStudent/event

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

event

event

使用方法 1、引入event文件 import {$on,$fire} from "event.js" 2、开启监听 $fire('custom-chat-event')

3、在需要的地方加入触发监听事件

$on('custom-chat-event', (data) => { console.log{'触发成功',data} }

About

用js实现了一个监听

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published