身份证号码脱敏
身份证号码 字符串.replace(/^(.{6}).+(.{4})$/, '\$1********\$2')
优化:字符串的repeat
'*'.repeat(7)
本文来自博客园,作者:jialiangzai,转载请注明原文链接:https://www.cnblogs.com/zsnhweb/articles/17680124.html
身份证号码 字符串.replace(/^(.{6}).+(.{4})$/, '\$1********\$2')
优化:字符串的repeat
'*'.repeat(7)
本文来自博客园,作者:jialiangzai,转载请注明原文链接:https://www.cnblogs.com/zsnhweb/articles/17680124.html