@wya/utils

1.6.6 • Public • Published

@wya/utils

npm changelog

安装

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

Readme

Keywords

none

Package Sidebar

Install

npm i @wya/utils

Weekly Downloads

2

Version

1.6.6

License

MIT

Unpacked Size

177 kB

Total Files

62

Last publish

Collaborators

  • wya