/**
* @description 每四位一个空格 保留后四位显示 其余*号隐藏
*/
let text = "6217002090002726";
this.textRe = text
.replace(/\s/g, "")
.replace(/(\d{4})\d+(\d{4})$/, "**** **** **** $2");
console.log(this.textRe);
js银行号显示处理
最新推荐文章于 2023-06-10 11:23:00 发布