2019-12-30
2020-06-29 本文已影响0人
奶茶和亮亮
身份证隐藏中间内容
let num = 460029198903124618
num.replace(/(\w{6})\w*(\w{4})/, '$1******$2')
console.log(num);//460029******4618
let num = 460029198903124618
num.replace(/(\w{6})\w*(\w{4})/, '$1******$2')
console.log(num);//460029******4618