上一页 1 ··· 5 6 7 8 9 10 下一页
摘要: /** * @description: 对利率添加百分号 * @param {type} {1.2300000,4} * @return: 1.2300% */ function rateFormatter(param, num) { // 过滤掉% // 统一转化为字符串并去掉左右空格 为了避免异 阅读全文
posted @ 2020-07-25 22:11 沁猿春 阅读(402) 评论(0) 推荐(0)
摘要: /** * @desc 金额转换成大写 * @param {Number} n 需要转换成大写的金额 * @return {String} 转换后的大写中文金额 * @example convertIntegerToChineseCash('123') =>'壹百贰拾叁元整' */ function 阅读全文
posted @ 2020-07-25 21:59 沁猿春 阅读(366) 评论(0) 推荐(0)
摘要: /* 引用方式 *<scroll :pullDown="true" :pullUpLoad="pullUpLoad" :list="transactionList" @pullingUp="pullingUp" @pullingDown="pullingDown" v-if="transaction 阅读全文
posted @ 2020-07-25 21:38 沁猿春 阅读(558) 评论(0) 推荐(0)
摘要: /* 解决 ios 1px 显示略粗的问题 */ .border-around, .border-top, .border-right, .border-bottom, .border-left { position: relative; } /* 上边框 */ .border-top:before 阅读全文
posted @ 2020-07-25 21:15 沁猿春 阅读(750) 评论(0) 推荐(0)
摘要: /* 金额格式化,加逗号 */ function moneyFormat01(value, point) { point = point > 0 && point <= 20 ? point : 2; value = parseFloat((value + "").replace(/[^\d\.-] 阅读全文
posted @ 2020-07-25 21:10 沁猿春 阅读(790) 评论(0) 推荐(0)
摘要: /* 账号手机号加密 */ function encrypt(value) { if (value == "") { return ""; } let len = value.length; let head = value.substr(0, 4); let mid = "****"; let t 阅读全文
posted @ 2020-07-25 20:58 沁猿春 阅读(522) 评论(0) 推荐(0)
摘要: /** * @param {string/number} value 时间戳 * @param {string} fmt 想要修改的时间格式 'yyyy-MM-dd' 'yyyy-MM-dd hh:mm' */ function formatDate(value, fmt) { var value 阅读全文
posted @ 2020-07-14 21:29 沁猿春 阅读(312) 评论(0) 推荐(0)
摘要: 1 /*媒体查询的方式 添加class名即可*/ @media only screen and (device-width:375px) and (decive-height:812px) and (-webkit-device-pixel-ratio:3){ 2 .content-bottom{ 阅读全文
posted @ 2020-07-13 14:06 沁猿春 阅读(845) 评论(0) 推荐(0)
摘要: 数组去重是最常见的面试题,现在总结一下我所知道的几种 阅读全文
posted @ 2019-12-10 15:03 沁猿春 阅读(211) 评论(0) 推荐(0)
摘要: 今天还遇到了这么一个问题,父组件向子组件传动态值,然后子组件接收之后赋值给data,然而,当父组件的值变化时,子组件中data 的值说什么也不变。 原因: 子组件赋值给data 值时,就不会改变,要想解决这个问题,用watch 来进行监听。 展示问题: 解决的方法: 就是再watch 中监听prop 阅读全文
posted @ 2019-11-26 22:11 沁猿春 阅读(2487) 评论(0) 推荐(0)
上一页 1 ··· 5 6 7 8 9 10 下一页