0.2.0 • Published 5 years ago

wya-utils v0.2.0

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

wya-utils

npm changelog

Demo

安装

npm install wya-utils --save

工具方法

  • setCookie = (key, val, days, path, domain, opts)
属性说明类型默认值
key-str-
val-any-
days-num0.5(天)
path域名下的目录str/
domain域名str-
opts自定义参数obj{}
  • delCookie = (key, path, domain, opts)
属性说明类型默认值
key-str-
path域名下的目录str/
domain域名str-
opts自定义参数obj{}
  • getCookie = (key, opts)
属性说明类型默认值
key-str-
opts自定义参数obj{}
  • setItem(key, val, type, opts)
  • getItem(key, type, opts)
  • delItem(key, type, opts)
  • getDevice(opts)
  • getConstructUrl(route, opts)
  • getParseUrl(windowHash, opts)
  • getHashUrl(url, paramObj, opts)
  • getUrlParam(key, urlInfo, opts)
  • objRegex
  • changeObjRegex(rule, opts)
  • dataValidity(rule, value, callback, opts)
  • getCroppedImg(canvas, fileName, getFile, opts)
  • defineProperty(obj, key, value, opts)
  • getFormatInputMoney(string, opts = {})
  • acc
  • accAdd(arg1, arg2, opts = {})
  • accSub(arg1, arg2, opts = {})
  • accMul(arg1, arg2, opts = {})
  • accDiv(arg1, arg2, opts = {}) ...
0.2.0

5 years ago

0.1.22

5 years ago

0.1.21

5 years ago

0.1.20

5 years ago

0.1.19

6 years ago

0.1.18

6 years ago

0.1.17

6 years ago

0.1.16

6 years ago

0.1.15

6 years ago

0.1.14

6 years ago

0.1.13

6 years ago

0.1.12

6 years ago

0.1.11

6 years ago

0.1.10

6 years ago

0.1.9

6 years ago

0.1.8

6 years ago

0.1.7

6 years ago

0.1.6

6 years ago

0.1.5

6 years ago

0.1.4

6 years ago

0.1.3

6 years ago

0.1.2

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago