1.0.19 • Published 5 years ago

hs-easy v1.0.19

Weekly downloads
-
License
ISC
Repository
-
Last release
5 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

5 years ago

1.0.18

5 years ago

1.0.17

5 years ago

1.0.16

5 years ago

1.0.15

5 years ago

1.0.14

5 years ago

1.0.13

5 years ago

1.0.12

5 years ago

1.0.11

5 years ago

1.0.10

5 years ago

1.0.9

5 years ago

1.0.8

5 years ago

1.0.7

5 years ago

1.0.3

5 years ago

1.0.2

5 years ago

1.0.1

5 years ago

1.0.0

5 years ago