@lihai-js/tool

2.1.0 • Public • Published

@lihai-js/tool

npm npm

一个应对企业工作常用方法,进行代码片段汇总编写的JavaScipt工具库,旨在减少重复Coding。

Install

npm install @lihai-js/tool
//yarn add  @lihai-js/tool

Usage

深克隆

const { ExpandObject } = require('@lihai-js/tool');
let origin = { name: '克隆', childrens: { name: "子类" } }
let cloneTarget = ExpandObject.getClone(origin)

订阅事件

const { MyEvent } = require('@lihai-js/tool');
MyEvent.on('click', () => {
    console.log('订阅一个click事件');
});

MyEvent.trigger('click');

导出对应的模块使用 更多方法详情,请根据网络情况选择https://catsandmice.github.io/tool/#/http://jshai.gitee.io/tool 进行查阅

License

MIT

Contact me

公众号搜索隔壁姥爷

Package Sidebar

Install

npm i @lihai-js/tool

Weekly Downloads

1

Version

2.1.0

License

MIT

Unpacked Size

32.5 kB

Total Files

25

Last publish

Collaborators

  • lihai-js