0.0.10 • Published 4 years ago

ly-js-util v0.0.10

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

JS工具函数

函数说明

  1. add(a,b) 数值求和
  2. getStorge(key) 获取键为key的localStorge
  3. setStorge(key, val) 存储键为key值为val的localStorge
  4. removeStorge(key) 移除键为key的localStorge
  5. deepClone(obj) 深拷贝对象或者数组
  6. operate(a,b,option) js精度修复计算 a,b为要计算的值 option为要进行的操作(+,-,*,/)
  7. getTime(format, timestamp, str) 时间格式化 format为格式 Y-m-d Y-m-d H:i:s timestamp 时间戳 str为时间分割(/ . 年月日)str传cn为年月日 str不传默认为-
0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago

0.0.6

4 years ago

0.0.5

4 years ago

0.0.4

4 years ago

0.0.3

4 years ago