function tel(tel) {
    const telNum = tel.toString();  
    const reg = /^(\d{3})\d{4}(\d{4})$/;
    return telNum.replace(reg, '$1****$2')
}
tel(13212341234)

 

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2022-12-23
  • 2021-12-11
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
猜你喜欢
  • 2022-12-23
  • 2021-11-27
  • 2021-11-27
  • 2021-12-16
  • 2022-12-23
  • 2021-06-29
  • 2021-11-27
相关资源
相似解决方案