【js】手机号码中间4位替换成****

 '13025456897'.replace(/^(\d{3})\d{4}(\d{4})/,'$1****$2')

猜你喜欢

转载自blog.csdn.net/weixin_51290060/article/details/129799102