*番号処理付きのjs携帯電話番号

 

var tells = '手机号码'
var tell = /(\d{3})\d*(\d{4})/;
phone = tells.replace(tell, '$1****$2')
console.log(phone);

 

おすすめ

転載: blog.csdn.net/weixin_43101671/article/details/114119267