trigun

0.0.18 • Public • Published

trigun

文件错误追踪

直接加载

var trigun = new this.Trigun({url: 'http://localhost:8024/report/add'});
trigun.mount();

发送事件

var event1 = new CustomEvent('log', {
    detail: {
        url: 'http://localhost:8024/userlog/add', 
    data: {
        userName: 'sunxiaoxu01',
        api: '/api/a/b/c',
        actionName: '登录'
    }
}});
var event2 = new CustomEvent('log', {
    detail: {
        url: 'http://localhost:8024/userlog/add', 
    data: {
        userName: 'qinqiuyu',
        api: '/api/a/b/c',
        actionName: '登录'
    }
}});
window.dispatchEvent(event1);
window.dispatchEvent(event2);

Readme

Keywords

Package Sidebar

Install

npm i trigun

Weekly Downloads

0

Version

0.0.18

License

ISC

Last publish

Collaborators

  • aprday