当前位置:网站首页>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;
}
},
边栏推荐
- An article clearly explains MySQL's clustering / Federation / coverage index, back to table, and index push down
- 提高排名的 15 个基本 SEO 技巧
- 德国举行全球粮食安全团结会议
- Configuring pytorch in win10 environment
- Update PIP & Download jupyter Lab
- 字符串各操作函数与内存函数详解
- Native JS --- infinite scrolling
- Sword finger offer day 3 string (simple)
- KVM 脚本管理 —— 筑梦之路
- Of binary tree_ Huffman tree_ Huffman encoding
猜你喜欢

Serevlt初识

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

康威定律,作为架构师还不会灵活运用?
Module 5 (microblog comments)

初始c语言时的一些知识
![[转]以终为始,详细分析高考志愿该怎么填](/img/77/715454c8203d722e246ed70e1fe0d8.png)
[转]以终为始,详细分析高考志愿该怎么填
![[flask tutorial] flask development foundation and introduction](/img/c4/fb80fbe6b563e3b304d59623ef6465.jpg)
[flask tutorial] flask development foundation and introduction

Storage related contents of data in memory

Optimization of lazyagg query rewriting in parsing data warehouse

nacos无法修改配置文件Mysql8.0的解决方法
随机推荐
Using CMD (command prompt) to install MySQL & configure the environment
Sword finger offer II 028 Flatten multi-level bidirectional linked list
It's an artifact to launch a website in a few minutes
Fedora 35 deploys DNS master-slave and separation resolution -- the way to build a dream
Serenvlt first met
Qt鼠标跟踪
数据在内存中的存储相关内容
list. replace, str.append
[转]以终为始,详细分析高考志愿该怎么填
Introduction to mongodb chapter 01 introduction to mongodb
Maui的学习之路(二)--设置
重磅直播|BizDevOps:数字化转型浪潮下的技术破局之路
Three lines of code to simply modify the project code of the jar package
Summary of leetcode linked list problem solving skills
Which Chinese virtual human is better? Sullivan, IDC: Xiaobing Baidu Shangtang ranks in the first echelon
Sword finger offer day 1 stack and queue (simple)
JVM parameter interpretation
Solve the problem that yarn cannot load files in vs Code
剑指offer 第 3 天字符串(简单)
几分钟上线一个网站 真是神器