中间四位变为****的四种方式

手机号中间加密形式展示  正则展示:
 
tel.replace(/(\d{3})\d{4}(\d{4})/, '$1****$2')
posted @ 2021-06-21 17:51  沁猿春  阅读(81)  评论(0)    收藏  举报