1.1.1 • Published 2 months ago
chill-utils v1.1.1
chill-utils
一个封装了 JS 的一些常用方法的工具
食用方法
- 下载 npm 包
npm i chill-utils
- 使用 Validate 校验函数
import { Validate } from 'chill-utils'
const mobile = '17726366787'
Validate.mobileCheck(mobile) //true
- 使用 Common 内的公共方法
const trrigerDebounce = Common.debounce(async () => {
console.log('trriger debounce')// 只会打印最后一次的
})
trrigerDebounce()
trrigerDebounce()