摘要:
// if (datas.key 'telephoneNumber') {// const { val } = datas// const patrn1 = /^(1[3-9]\d{9}$)/// const patrn = /^(([0-9]{3,4}[-])?[0-9]{7,8}$)/// le 阅读全文
摘要:
// mathjs 四舍五入取整 val:值export function roundingInt(val) { if (val) { return math.round(val, 0) }}// mathjs 四舍五入 val:值,num:小数位export function rounding(v 阅读全文
摘要:
/* * 参数说明:* number:要格式化的数字* decimals:保留几位小数 * dec_point:小数点符号* thousands_sep:千分位符号* */export function numberDivision(number, decimals, dec_point, thou 阅读全文
摘要:
// 搜索过滤 val:传入值, list:列表数组, key:对比字段, filterIndex:过滤开始的索引export function dataFilter(val, list, key, filterIndex) { filterIndex = filterIndex >= 0 ? fi 阅读全文