wya-utils
0.2.0 • Public • Published wya-utils
安装
npm install wya-utils --save
工具方法
setCookie = (key, val, days, path, domain, opts)
属性 |
说明 |
类型 |
默认值 |
key |
- |
str |
- |
val |
- |
any |
- |
days |
- |
num |
0.5(天) |
path |
域名下的目录 |
str |
/ |
domain |
域名 |
str |
- |
opts |
自定义参数 |
obj |
{} |
delCookie = (key, path, domain, opts)
属性 |
说明 |
类型 |
默认值 |
key |
- |
str |
- |
path |
域名下的目录 |
str |
/ |
domain |
域名 |
str |
- |
opts |
自定义参数 |
obj |
{} |
属性 |
说明 |
类型 |
默认值 |
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 = {})
...
Dependencies (0)
Dev Dependencies (50)
Package Sidebar
Install
Weekly Downloads