var reg = /^(\d{4})(\d*)/;
this.code= code.replace(reg, function (a, b, c, d) {
return b + c.replace(/\d/g, "*");
});
身份证号只显示前四位
猜你喜欢
转载自blog.csdn.net/wuwenjie_1997/article/details/103561098
今日推荐
周排行