@msvx/h5
1.1.37 • Public • Published
npm install
npm i
npm run serve
npm run lib
// 1、发布版本前,本工程需要先执行 npm run lib
// 2、本工程npm publish
// 3、在相应工程添加依赖
使用npm
npm config set registry http://192.168.3.200:8080/nexus/content/repositories/npm-group/
或使用yarn
yarn config set registry http://192.168.3.200:8080/nexus/content/repositories/npm-group/
安装
npm i @component/h5 -S
更新
npm uninstall @component/h5
npm i @component/h5 -S
或使用
npm update @component/h5
- check 数据校验
- date 日期处理
- storage 浏览器缓存
// check api
check.isRealArray(_) // 验证是否是有效的数字
check.isString(_) // 验证是否是字符串
check.isNumber(_) // 判断是否是number、Number
check.isPointNumber(_) // 判断是否数字或者带小数点的数字(小数点后2位)
check.isFunction(_) // 判断目标参数是否为function或Function实例
check.isDate(_) // 判断是否为日期对象
check.isArray(_) // 判断是否为数组
check.isElement(_) // 判断是否为Element对象
check.isBool(_) // 判断目标参数是否Boolean对象
check.isObject(_) // 判断目标参数是否为Object对象
check.isNullObject(_) // 验证是否为空对象
check.isNull(_) // 判断是否为空
check.isNullString(_) // 判断是空字符串 null 或者 ''
check.isNullArray(_) // 判断是空数组
check.isMobile(_) // 手机号码验证,验证13系列和150-159(154除外)、180、185、186、187、188、189几种号码,长度11位
check.isEmail(_) // 验证邮箱
Readme
Keywords
nonePackage Sidebar
Install
Weekly Downloads