bingxixi-common-utils
v1.0.2
Published
> `bingxixi-common-utils` (加密电话号码,拿到数值的整数位数)
Downloads
8
Readme
bingxixi-common-utils
(加密电话号码,拿到数值的整数位数)
Install
npm bingxixi-common-utils -S
USE
import { userPrivate, getNumBit } from 'bingxixi-common-utils' // 整个模块
// 可进行全局的组件注册,也可以单独引入到组件
Vue.prototype.$userPrivate = userPrivate
Vue.prototype.$getNumBit = getNumBit
// 也可以vue页面中引入,直接使用
Details
userPrivate 加密电话号码
参数 | 类型 | 说明 | 默认值
---|---|---|---
phone
| String|Number
| 手机号码(可带86,至少11位) | 无
import { userPrivate } from 'bingxixi-common-utils' // 整个模块
userPrivate(phone)
getNumBit 获取整数位数
参数 | 类型 | 说明 | 默认值
---|---|---|---
num
| Number
| 输入数值 | 无
import { getNumBit } from 'bingxixi-common-utils'
getNumBit(num)