js手机号

const telDesensitization = (phone: string): string =>
  phone?.length === 11 ? phone.replace(/(\d{3})\d*(\d{4})/, '$1****$2') : '';