手机号及身份证号的脱敏处理
文章目录
详情见下
// 法人证件号码
let str = this.pageData.customerInfo.delegateCerti
this.pageData.customerInfo.delegateCerti = str.replace(/(w{2})w*(w{4})/, '$1******$2');
// 开户行账号
let str1 = this.pageData.customerInfo.accCode
this.pageData.customerInfo.accCode = str1.replace(/(w{4})w*(w{4})/, '$1******$2');
console.log("脱敏处理后的法人信息及号码",this.pageData.customerInfo.delegateCerti,this.pageData.customerInfo.accCode);
},

评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论