当前位置:网站首页>Regular match the phone number and replace the fourth to seventh digits of the phone number with****
Regular match the phone number and replace the fourth to seventh digits of the phone number with****
2022-06-25 13:17:00 【liminla!】
filters: {
phoneHide(value) {
const isPhone = /^1[3|4|5|6|7|8|9][0-9]{9}$/;
let phone = value?.username
if (isPhone.test(phone)) {
phone = phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2');
}
return phone;
}
},
边栏推荐
- 药物设计新福音:腾讯联合中科大、浙大开发自适应图学习方法,预测分子相互作用及分子性质
- Assemble relevant knowledge points of flag bit (connected)
- 《MongoDB入门教程》第01篇 MongoDB简介
- 字符串入门十八讲合集四
- Detailed explanation of string operation functions and memory functions
- 515. Find Largest Value in Each Tree Row
- 字节跳动Dev Better技术沙龙来啦!参与活动赢好礼,限时免费报名中!
- Capabilities required by architects
- 坡道带来的困惑
- Conway's law can not be flexibly applied as an architect?
猜你喜欢

关于一道教材题的讲解

初始c语言时的一些知识

剑指 Offer II 028. 展平多级双向链表

mysql导入导出数据到excel表日期出现问题

Maui的学习之路(二)--设置

An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down

It's an artifact to launch a website in a few minutes

坡道带来的困惑

Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token

字符串各操作函数与内存函数详解
随机推荐
J2EE from entry to earth 01 MySQL installation
Module 5 (microblog comments)
J2EE从入门到入土01.MySQL安装
Online service emergency research methodology
三行代码简单修改jar包的项目代码
关于数据在内存中存储的相关例题
Summary of leetcode linked list problem solving skills
时间过滤器(el-table)中使用
[pit avoidance means "difficult"] actionref current. Reload() does not take effect
Capabilities required by architects
KVM script management - the road to dream
重磅直播|BizDevOps:数字化转型浪潮下的技术破局之路
Summer Ending
Django framework - caching, signaling, cross site request forgery, cross domain issues, cookie session token
nacos无法修改配置文件Mysql8.0的解决方法
Meichuang was selected into the list of "2022 CCIA top 50 Chinese network security competitiveness"
Native JS --- infinite scrolling
QT mouse tracking
字节跳动Dev Better技术沙龙来啦!参与活动赢好礼,限时免费报名中!
Django框架——缓存、信号、跨站请求伪造、 跨域问题、cookie-session-token