会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
欺以其方
管理
上一页
1
2
3
4
5
6
···
8
下一页
2021年11月1日
脱敏
摘要: 使用 对手机毫号码或者身份证的信息进行脱敏处理, 保留字符传长度 // utils.js 文件中 export const codingStr= (val, start, end) => {}) // vue 文件中 {{codingStr(132132132132)}} 返回 => 132****
阅读全文
posted @ 2021-11-01 21:42 雨天。我
阅读(120)
评论(0)
推荐(0)
2021年10月31日
金额大写
摘要: 使用 对数字进行中文大写转化 // utils.js 文件中 export const number2Chinese = (number, type, prefix) => {}) // vue 文件中 {{number2Chinese(-1000012.111)}} import { number
阅读全文
posted @ 2021-10-31 13:41 雨天。我
阅读(120)
评论(0)
推荐(0)
2021年10月26日
格式化金额
摘要: 使用 对金额实行千分位的格式化 // utils.js文件中 export function formatMoney (num, option = {}) {} // vue文件中 {{formatMoney(12.112123)}} import { formatMoney } from '../
阅读全文
posted @ 2021-10-26 22:22 雨天。我
阅读(205)
评论(0)
推荐(0)
2021年10月23日
倒计时
摘要: 使用 使用背景:发送短信或者发送验证码时的多少秒倒数,定时执行多次轮询的请求 // 引入倒计时类(class) import { BuildCountdown } from '@/constance/countdown.js' // 再需要的地方实例化一个countdown 对象 let count
阅读全文
posted @ 2021-10-23 21:43 雨天。我
阅读(144)
评论(0)
推荐(0)
2021年9月12日
父子组件生命周期、watch、computed的执行顺序
摘要: 父子组件生命周期执行顺序 beforeCreate不能访问到methods、data、computed、watch上的方法和数据 created 可以调用methods中定义的方法,修改data的数据,并且可触发响应式变化、computed值重新计算,watch到变更等 加载渲染过程 父before
阅读全文
posted @ 2021-09-12 17:36 雨天。我
阅读(2333)
评论(0)
推荐(1)
上一页
1
2
3
4
5
6
···
8
下一页
公告