07 2020 档案
摘要:控制小数的四舍五入,以及不足小数位数时,是否自动补零
阅读全文
摘要:身份证前四后三脱敏、判断身份证是否成年、检验身份证是否合法
阅读全文
摘要:/** * @description: 对利率添加百分号 * @param {type} {1.2300000,4} * @return: 1.2300% */ function rateFormatter(param, num) { // 过滤掉% // 统一转化为字符串并去掉左右空格 为了避免异
阅读全文
摘要:/** * @desc 金额转换成大写 * @param {Number} n 需要转换成大写的金额 * @return {String} 转换后的大写中文金额 * @example convertIntegerToChineseCash('123') =>'壹百贰拾叁元整' */ function
阅读全文
摘要:/* 引用方式 *<scroll :pullDown="true" :pullUpLoad="pullUpLoad" :list="transactionList" @pullingUp="pullingUp" @pullingDown="pullingDown" v-if="transaction
阅读全文
摘要:/* 解决 ios 1px 显示略粗的问题 */ .border-around, .border-top, .border-right, .border-bottom, .border-left { position: relative; } /* 上边框 */ .border-top:before
阅读全文
摘要:/* 金额格式化,加逗号 */ function moneyFormat01(value, point) { point = point > 0 && point <= 20 ? point : 2; value = parseFloat((value + "").replace(/[^\d\.-]
阅读全文
摘要:/* 账号手机号加密 */ function encrypt(value) { if (value == "") { return ""; } let len = value.length; let head = value.substr(0, 4); let mid = "****"; let t
阅读全文
摘要:/** * @param {string/number} value 时间戳 * @param {string} fmt 想要修改的时间格式 'yyyy-MM-dd' 'yyyy-MM-dd hh:mm' */ function formatDate(value, fmt) { var value
阅读全文
摘要:1 /*媒体查询的方式 添加class名即可*/ @media only screen and (device-width:375px) and (decive-height:812px) and (-webkit-device-pixel-ratio:3){ 2 .content-bottom{
阅读全文