1.0.19 • Published 4 years ago

hs-easy v1.0.19

Weekly downloads
-
License
ISC
Repository
-
Last release
4 years ago

hs-easy

*整理前端开发过程中用到的一些常用方法,持续更新

使用方式

*npm i hs-easy

*举例

import hsEasy from 'hs-easy'

hsEasy.common.deepCopy({data})

方法

*common

深拷贝【deepCopy(data)】 本地存储【getStorage(name),setStorage(name,data),removeStorage(name)】

*date

日期格式化【Format(YYYY-MM-DD hh:mm:ss,date) 参数date支持时间戳】 获取时间戳【getTimestamp(date='',fmt='',millisecond=1000)默认为示例 date为空默认返回当前时间时间戳,fmt传入指定时间日期格式yy-mm-dd,date传入指定时间;millisecond=1000为十三位时间戳】

1.0.19

4 years ago

1.0.18

4 years ago

1.0.17

4 years ago

1.0.16

4 years ago

1.0.15

4 years ago

1.0.14

4 years ago

1.0.13

4 years ago

1.0.12

4 years ago

1.0.11

4 years ago

1.0.10

4 years ago

1.0.9

4 years ago

1.0.8

4 years ago

1.0.7

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago