lm-public-js
v1.1.1
Published
个人js库
Downloads
27
Readme
lm-react
介绍
个人的js库
包含
封装的方法
安装教程
npm install lm-public-js
如
import { query } from 'lm-public-js'
使用说明
- sort(arr:Array) 返回值 新数组
- query(url:String) 返回值 对象 {参数名:值}
- session.getSession(key:String || Array) 返回值 对象{查询的key:搜索到对应value} session.setSession(key:String)
- storage.getStorage(key:String || Array) 返回值 对象{查询的key:搜索到对应value} storage.setStorage(key:String)
- dateFormat(subtract:Number(时间差天数),isStart:Boolean(是否是开始时间)) 返回值 如 2020-02-02 23:59:59 || 2020-02-02 00:00:00
- copy(x:any) 返回值 拷贝元数据