npm install @wya/utils``vim``
npm install @wya/utils --save
- Utils
- def,
- isObj,
- hasOwn,
- preZero,
- cloneDeep,
- cloneDeepEasier,
- createMixins,
- formatMoney,
- canvas2file,
- base622Blob,
- getWordsLength,
- sum2array,
- getUid
- set
- Storage, Cookie
- get
- set
- remove
- setVersion
- Device
- androidChrome: false,
- ipad: false,
- iphone: false,
- android: false,
- ios: false,
- webView: null,
- wechat: false,
- touch: false,
- ~~todo: xx版本号~~
- RegEx
- set
- validator
- num: 以下都为正则
- integer
- email
- date
- time
- IDCard
- price
- mobile
- phone
- postalcode
- zipcode
- wechat
- name
- URL
- merge
- parse
- get
- Calc
- add
- sub
- mul
- div
- val
- extend
- Load
- css
- cssCode
- removeCSSCode
- js
- DOM/$
- prefixStyle
- composedPath
- DOM/$(el)
- on
- off
- once
- addClass
- removeClass
- hasClass
- getStyle
- setStyle
- isScroll
- getScroller
- contains
- scrollIntoView
- Decorator
- AutoCatch
- Debounce
- Throttle
- Delay
- Ready
- Time
- Deprecated
[changelog-image]: https://img.shields.io/badge/changelog-md-blue.svg
[changelog-url]: CHANGELOG.md
[npm-image]: https://img.shields.io/npm/v/@wya/utils.svg
[npm-url]: https://www.npmjs.com/package/@wya/utils